目前,Resharper将我的代码格式化为:
myField1 = expression1 +
expression2 +
expression4 +
expression5 +
expression6;
if (expression1
|| expression2
|| expression4
|| expression5
|| expression6
|| expression7)
{
}
如何将行为更改为类似以下内容:
myField1 = expression1 +
expression2 + expression3 +
expression4 +
expression5 +
expression6;
if (expression1
|| expression2
|| expression4
|| expression5
|| expression6
|| expression7)
{
}
谢谢!
最佳答案
从菜单中:Resharper -> Options...
去:Languages -> C# -> Formatting Style -> Other
并检查:Align Multiline Constructs -> Expression