I have a code like this and I want Resharper to reformat such code always in this way
using (var testSystem = await new TestSystemBuilder()
.WithSomething(TestData.Something)
.WithSomethingElse(TestData.Something)
.Build())
{
}
But after Resharper reformatting it makes it look like this:
using (var testSystem = await new TestSystemBuilder()
.WithSomething(TestData.Something)
.WithSomethingElse(TestData.Something)
.Build())
{
}
How to force it to keep one tab indentation for chained calls?
Resharper version: 2017.3.2
Update: it actually happens only for async calls...
ReSharper -> Options -> Code Editing -> C# -> Formatting Style -> Tabs, Indents, Alignment -> Align Multiline Constructs -> Uncheck Chained method calls
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With