ErikTJ
ErikTJ

Reputation: 2009

ReSharper fluent indentation

When I format this piece with ReSharper:

this.Tabs.Add(bb => bb
             .Horizontal(h => h
                  .Vertical(v => v
                      .Box("0", upperView, "")
                      .Box("1", mainView, ""))));

I get:

this.Tabs.Add(bb => bb
                     .Horizontal(h => h
                                           .Vertical(v => v
                                                             .Box("0", upperView, "")
                                                             .Box("1", mainView, ""))));

But I want it to stay the same. How would I do this?

Upvotes: 1

Views: 447

Answers (1)

thersch
thersch

Reputation: 1396

Maybe deselecting

  • ReSharper →
  • Options →
  • Languages →
  • C# →
  • Formatting Style →
  • Other →
  • Align Multiline Constructs →
  • Expression

reduces the effect.

(Assumed you are using C#.)

Upvotes: 2

Related Questions