Skip to content

Commit

Permalink
Adjust .editorconfig so IntelliJ IDEA formatting matches code style
Browse files Browse the repository at this point in the history
"Optimize imports" and "reformat code" might behave differently
due to https://youtrack.jetbrains.com/issue/IDEA-241101

"Class count to use import with *" and "names count to use import with *"
needs to be adjusted manually to 999.
  • Loading branch information
vlsi committed Jun 11, 2021
1 parent 0ace1d4 commit 4ddf7b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
root = true

[*]
max_line_length = 100
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
Expand All @@ -18,6 +19,20 @@ trim_trailing_whitespace = false

[*.java]
indent_size = 2
ij_continuation_indent_size = 4
# Doc: https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0
# $ means "static"
ij_java_wrap_long_lines = true
ij_java_wrap_comments = true
ij_java_imports_layout = $*,|,*
ij_java_use_single_class_imports = true
# Below does not seem to work as of 2021.1.1 even though
# https://youtrack.jetbrains.com/issue/IDEA-225733 is resolved
wildcard_import_limit = 999
ij_kotlin_name_count_to_use_star_import = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
ij_java_class_count_to_use_import_on_demand = 999
ij_java_names_count_to_use_import_on_demand = 999

[*.js]
indent_size = 2
Expand Down

0 comments on commit 4ddf7b3

Please sign in to comment.