Format closing parenthesis to new line

When I declare or call a C# method with multi-line parameters like this:

 

    public void DoSomething(

        p1,

        p2,

        p3);

 

Then I would like ReSharper to format that code like this:

 

    public void DoSomething(

        p1,

        p2,

        p3

    );

 

Is there a setting that I'm not noticing that allows me force the closing parenthesis to a new line?

0
3 comments

Hello!

 

Thank you for the feedback.

Please try ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Arrangement of method signatures | Prefer wrap before ")" in declaration.

Thank you.

1
Avatar
Permanently deleted user

I am not seeing the "Arrangement of method signatures" options in my settings for c++. I am using Visual Studio 2017 with the latest Resharper Ultimate 2018.2
Can you help me out ? I need to enable the same settings as above.

Thanks.

0

Hello Grnanda!

 

Thank you for contacting us.

There's no such formatting option for C++. I've filed corresponding feature request - https://youtrack.jetbrains.com/issue/RSCPP-23300

You are welcome to comment or vote for it.

Thank you,

0

Please sign in to leave a comment.