Skip to content

Commit

Permalink
Add "ij_continuation_indent_size" setting to .editorconfig (Graylog2#…
Browse files Browse the repository at this point in the history
…6251)

Since I updated IntelliJ to 2019.2, I noticed changed indentation
behavior on line continuations. Instead of the standard 8 characters we
are using everywhere, I now only get 4 characters of indentation. This
is pretty annoying and also doesn't match the "standard" IntelliJ code
style we are using for years.

It looks like IntelliJ is now handling editorconfig files differently
and now supports vendor specific settings.

This change is adding the "ij_continuation_indent_size" IntelliJ
specific editorconfig setting to restore the old behavior of 8
character indent for line continuations.
  • Loading branch information
bernd authored and dennisoelkers committed Aug 7, 2019
1 parent f9c6427 commit ffc49bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ insert_final_newline = true

[*.java]
indent_size = 4
ij_continuation_indent_size = 8
trim_trailing_whitespace = true

[*.{js,jsx}]
Expand Down

0 comments on commit ffc49bc

Please sign in to comment.