glenkpeterson
06/04/2021, 8:40 PMfoo.toUpperCase()
.trim()
.length
Then "Use continuation indent" which just indents one more unit:
foo.toUpperCase()
.trim()
.length
Why not "Align when multiline" so the dots line up all pretty?
foo.toUpperCase()
.trim()
.length
ephemient
06/04/2021, 9:28 PMUse four spaces for indentation. Do not use tabs.
As a general rule, avoid horizontal alignment of any kind. Renaming an identifier to a name with a different length should not affect the formatting of either the declaration or any of the usages.
glenkpeterson
06/06/2021, 12:09 AM"Renaming an identifier to a name with a different length should not affect the formatting"That is a really good answer. Thank you. I still like what I'm used to, but I'm going to try retraining myself to follow the standard. https://kotlinlang.org/docs/coding-conventions.html#wrap-chained-calls