Reputation: 2358
I've never figured out how to make Intellij handle continuation indent for chained methods properly, and apparently today is the day it's annoyed me enough to consult you lovely people.
What I want is this:
makeAThing(
"with",
"params"
)
.setProperty("with some more params")
.start();
What I get is this:
makeAThing(
"with",
"params"
)
.setProperty("with some more params")
.start();
I get this in Java, Groovy, JavaScript and a bunch of other places. How can I persuade Intellij not to add continuation indent after a chained method call?
Upvotes: 17
Views: 3668
Reputation: 49095
I just switched to intellij and also have found this rather annoying.
Only found two solutions:
Works for Java not sure for JS:
// @formatter:off
...
// @formatter:on
Upvotes: 3