Reputation: 1021
Resharper currently formats my code to:
myField1 = expression1 +
expression2 +
expression4 +
expression5 +
expression6;
if (expression1
|| expression2
|| expression4
|| expression5
|| expression6
|| expression7)
{
}
How do I change the behaviour to something like:
myField1 = expression1 +
expression2 + expression3 +
expression4 +
expression5 +
expression6;
if (expression1
|| expression2
|| expression4
|| expression5
|| expression6
|| expression7)
{
}
Thank you!
Upvotes: 1
Views: 226
Reputation: 10128
By the way, stairs-like formatting is fixed in ReSharper 7.0 EAP.
Upvotes: 0
Reputation: 22126
From the menu:
Resharper -> Options...
Go to:
Languages -> C# -> Formatting Style -> Other
And check:
Align Multiline Constructs -> Expression
Upvotes: 3
Reputation: 696
Under Options-Code Editing, there is options for aligning multiline constructs. One of them are Expression, which you could enable to get the behaviour you want
Upvotes: 1