Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I adjust the left margin on parameters in ReSharper/VS2010?

This is silly, but when I have something like this

SomethingStupid.Whatever(string a, string b, string c);

And then I break them off like this:

SomethingStupid.Whatever(string a,
     string b,
     string c);

My code cleanup moves them to that position, when I'd like to see them here:

SomethingStupid.Whatever(string a,
                         string b,
                         string c);

For the life of me I can't figure out where this setting exists, any ideas?

like image 786
chum of chance Avatar asked Jul 13 '11 19:07

chum of chance


1 Answers

You need to change the setting at ReSharper -> Options -> C# -> Formatting Style -> Other -> Align Multiline Constructs -> Method Parameters. Enabling the option will line up you multiline method parameters with each other as you want.

like image 111
adrianbanks Avatar answered Sep 30 '22 12:09

adrianbanks