Resharper multiline method invocation parenthesis alignment

倖福魔咒の 提交于 2019-12-02 20:19:53

In Visual Studio, go to Resharper > Options > Languages > C# > Formatting Style > Other > Indentation > Continuous line indent multiplier and set it to 0.

Can I recommend you take a look at StyleCop, and then StyleCop for ReSharper?

StyleCop allows you to create exceptions or warnings for various types of formatting. The latter project, StyleCop for ReSharper allows ReSharper to automatically implement certain formats. There is quite a steep learning curve initially with SfR, but it is well worthwhile. This is a very under-used tool, and I wish Microsoft would advertise StyleCop more.

Both are Codeplex projects, and can be found at their respective URL's:

I hope this helps you out somewhat.

In 2016.2 version appeared an option Intent method calls' parenthesis.

It does exactly what you expect:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!