Place ')' on new line when adding line break inside method invocation

When calling a method, placing caret like this and pressing ENTER to add line break:

Method(|); // | is the position of caret

I would like to perform the following action:

Method(
    |
);

but instead the following happens:

Method(
   |);

In Code style | C# | Line Breaks and Wrapping | Arrangement of invocations 

I have `Prefer to wrap after ‘(’ in invocation` and `Prefer to wrap before ‘)' in invocation` enabled. 

Also Smart indent on enter is enabled.

The behaviour i am describing is default for example in Pycharm. How can I achieve the same in Rider 2025.1.4

 

0
1 comment

Hello, 

Thanks for contacting Rider support.

There is no option to exactly achieve what you're looking for. I encourage you to submit a feature request in our issue tracker (it's under “ReSharper” project, as Rider utilizes ReSharper's engine for coding). This allows others to view your request and add their votes if they find the feature useful. Such feedback is invaluable in helping our team prioritize features that matter most to our users.

Please let me know if you have any other questions. 

 

0

Please sign in to leave a comment.