ReSharper的多行方法调用括号对齐 [英] Resharper multiline method invocation parenthesis alignment
本文介绍了ReSharper的多行方法调用括号对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ReSharper的是格式化多行的方法调用是这样的:
Resharper is formatting multiline method calls like this:
foo.Bar(
x,
y
);
我宁愿它对准的第一行如右括号:
I would prefer it to align the closing parenthesis with the first line e.g.:
foo.Bar(
x,
y
);
我已经通过了ReSharper的代码布局选项望去,却看不到正确的设置。谁能告诉我如何实现这一目标的替代格式?
I've looked through the Resharper code layout options, but cannot see the right setting. Can someone tell me how to achieve this alternative formatting?
推荐答案
在Visual Studio中,去ReSharper的>选项>语言> C#>格式样式>其它>压痕>连续行缩进乘数并将其设置为0。
In Visual Studio, go to Resharper > Options > Languages > C# > Formatting Style > Other > Indentation > Continuous line indent multiplier and set it to 0.
这篇关于ReSharper的多行方法调用括号对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文