From 15c58c5921cfa93de3a86b27e7674ebc8fb4ef61 Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:30:22 +0800 Subject: Add fabric .editorconfig --- .editorconfig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..d256ea9c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,28 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +tab_width = 4 + +[*.gradle] +indent_style = tab + +[*.java] +indent_style = tab +ij_continuation_indent_size = 8 +ij_java_imports_layout = $*,|,java.**,|,javax.**,|,*,|,net.minecraft.**,|,net.fabricmc.** +ij_java_class_count_to_use_import_on_demand = 999 + +[*.json] +indent_style = space +indent_size = 2 + +[*.properties] +indent_style = space +indent_size = 2 + +[.editorconfig] +indent_style = space +indent_size = 4 -- cgit From 11a943284a94d62eb2e0e427e6204a9a30945e9a Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:57:15 +0800 Subject: Edit imports, disable max line length, add simple blocks in one line --- .editorconfig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index d256ea9c..1ea73d8a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,9 +11,17 @@ indent_style = tab [*.java] indent_style = tab -ij_continuation_indent_size = 8 -ij_java_imports_layout = $*,|,java.**,|,javax.**,|,*,|,net.minecraft.**,|,net.fabricmc.** +max_line_length = off +ij_continuation_indent_size = 8 # IntelliJ default +# Imports +ij_java_imports_layout = *,|,javax.**,java.**,|,$* # IntelliJ default ij_java_class_count_to_use_import_on_demand = 999 +ij_java_names_count_to_use_import_on_demand = 999 +# Wrapping and Braces +ij_java_keep_simple_blocks_in_one_line = true +ij_java_keep_simple_classes_in_one_line = true +ij_java_keep_simple_lambdas_in_one_line = true +ij_java_keep_simple_methods_in_one_line = true [*.json] indent_style = space -- cgit From 26984deb525091f52a83636e937c8ee961bdc878 Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:39:02 +0800 Subject: Remove imports section --- .editorconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index 1ea73d8a..7f534911 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,10 +13,6 @@ indent_style = tab indent_style = tab max_line_length = off ij_continuation_indent_size = 8 # IntelliJ default -# Imports -ij_java_imports_layout = *,|,javax.**,java.**,|,$* # IntelliJ default -ij_java_class_count_to_use_import_on_demand = 999 -ij_java_names_count_to_use_import_on_demand = 999 # Wrapping and Braces ij_java_keep_simple_blocks_in_one_line = true ij_java_keep_simple_classes_in_one_line = true -- cgit From 1ea63e9fa83bfb327002c99931a774162fc2403b Mon Sep 17 00:00:00 2001 From: Kevin <92656833+kevinthegreat1@users.noreply.github.com> Date: Sun, 25 Aug 2024 00:52:12 +0800 Subject: Combine json and properties formatting Co-authored-by: Julienraptor01 --- .editorconfig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.editorconfig b/.editorconfig index 7f534911..5e0dd9eb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -19,11 +19,7 @@ ij_java_keep_simple_classes_in_one_line = true ij_java_keep_simple_lambdas_in_one_line = true ij_java_keep_simple_methods_in_one_line = true -[*.json] -indent_style = space -indent_size = 2 - -[*.properties] +[*.{json,properties}] indent_style = space indent_size = 2 -- cgit