Skip to content

WRONG_INDENTATION: why are extendedIndentOfParameters, extendedIndentAfterOperators, and extendedIndentBeforeDot set to false? #1346

Discussion options

You must be logged in to vote

All these flags:

  • extendedIndentOfParameters,
  • extendedIndentAfterOperators, and
  • extendedIndentBeforeDot

are in control of whether continuation indent should be enabled or not (in various contexts), while the modern Kotlin style guide doesn't mention any continuation indent at all.

This paragraph (Differences between "Kotlin coding conventions" and "IntelliJ IDEA default code style") describes why the continuation indent is gone from the style guide:

The most notable change is in the continuation indentation policy. There's a nice idea to use the double indent for showing that a multi-line expression hasn't ended on the previous line. This is a very simple and general rule, but several …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 0x6675636b796f75676974687562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant