I'm new to Resharper and I can't seem to find an option to format multi-line method declarations like this:
public void SomeMethod
(
int parameter1,
string parameter2
);
Instead, I get this:
public void SomeMethod
(
int parameter1,
string parameter2
);
Is there a way to do it automatically on code cleanup?
Try going to Options| C# | Formatting Style | Braces Layout.
From there you can change the rules for the indentation. For Regular methods mine is set to At next line (BSD style).
In ReSharper -> Options
C# -> Formatting Style -> Other -> Indentation,
Set: Continuous line indent multiplier to 0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.