Wrap ctor/method call if arguments are wrapped in separate lines

Is there a setting, where I can set up C# formatting in a way, that a constructor or method call gets wrapped in a new line, if the arguments are wrapped in separate lines?

Expected:

Actual:

What I could already achieve with the settings I'm aware of can be seen in the picture below.

My motivation is that in this way the visual structure of the code is partially lost,
as the arguments are positioned related to the local variable, not to the constructor,
even though they belong directly to the constructor call.

 

 

2 comments
Comment actions Permalink

Pfeffa,

Regrettably, Rider doesn't support this code style. I've created a feature request for it, please feel free to upvote: https://youtrack.jetbrains.com/issue/RSRP-487382

0

Please sign in to leave a comment.