Reputation: 14379
Currently if I write use the following builder class Intellij will indent the following way
SomeClass.create()
.someMethod()
.someOtherMethod();
What I would like it to do is indent like this:
SomeClass.create()
.someMethod()
.someOtherMethod();
Does anybody know how to set this up?
Upvotes: 14
Views: 6783
Reputation: 65
Alternatively, if you have editorconfig setup, you can add the following property to your .editorconfig
file:
Upvotes: 1
Reputation: 160170
Produces the following when reformatting source:
Upvotes: 24