formatting - Chained methods and continuation indent in Intellij -
i've never figured out how make intellij handle continuation indent chained methods properly, , apparently today day it's annoyed me enough consult lovely people.
what want this:
makeathing( "with", "params" ) .setproperty("with more params") .start();
what this:
makeathing( "with", "params" ) .setproperty("with more params") .start();
i in java, groovy, javascript , bunch of other places. how can persuade intellij not add continuation indent after chained method call?
i switched intellij , have found rather annoying.
only found 2 solutions:
- forcing coding style have 0 "continuation indent" i'm starting anyway albeit not canonical java.
- turing off formatter blocks of code , press shift tab
works java not sure js:
// @formatter:off ... // @formatter:on
Comments
Post a Comment