bugged87
bugged87

Reputation: 3142

ReSharper Formatting - put method closing parenthesis on 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 to like this:

public void DoSomething(
    p1,
    p2,
    p3
);

Is there a setting that enables this behavior?

Upvotes: 3

Views: 547

Answers (1)

mholle
mholle

Reputation: 597

This feature is only available beginning with ReSharper 2018.1.

Those settings are located here:

Code Editing -> C# -> Formatting Style -> Line Breaks and Wrapping

  1. -> Arrangement of Method Signatures -> Prefer wrap before ")" in declaration
  2. -> Arrangement of Invocations -> Prefer wrap before ")" in invocation

Upvotes: 4

Related Questions