我有这样的代码,我希望Resharper以这种方式重新格式化这些代码
using (var testSystem = await new TestSystemBuilder()
.WithSomething(TestData.Something)
.WithSomethingElse(TestData.Something)
.Build())
{
}
但是在Resharper重新格式化后,它看起来像这样:
using (var testSystem = await new TestSystemBuilder()
.WithSomething(TestData.Something)
.WithSomethingElse(TestData.Something)
.Build())
{
}
如何强制它为链式通话保留一个标签缩进? Resharper版本:2017.3.2
更新:它实际上仅针对异步调用...
答案 0 :(得分:0)
ReSharper
- > Options
- > Code Editing
- > C#
- > Formatting Style
- > Tabs, Indents, Alignment
- > Align Multiline Constructs
- >取消选中Chained method calls