In Editor -> Code Style -> Kotlin, why isn't there an "Align when multiline" option for Chained Function Calls?
There is "Wrap first call," which doesn't seem to do anything.
Copy code
foo.toUpperCase()
.trim()
.length
Then "Use continuation indent" which just indents one more unit:
Copy code
foo.toUpperCase()
.trim()
.length
Why not "Align when multiline" so the dots line up all pretty?
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.
g
glenkpeterson
06/06/2021, 12:09 AM
"Renaming an identifier to a name with a different length should not affect the formatting"