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:

  1. forcing coding style have 0 "continuation indent" i'm starting anyway albeit not canonical java.
  2. turing off formatter blocks of code , press shift tab

works java not sure js:

// @formatter:off ... // @formatter:on 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -