From 56b036ecf893aa6bd249d0e18acec180a73934fd Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Fri, 22 Dec 2023 19:38:10 +0800 Subject: [PATCH] add `.editorconfig` ease the view and edit settings of the editor/IDE more info see https://editorconfig.org/ --- .editorconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..fcc91261 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +# https://editorconfig.org/ + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true + +tab_width = 8 +indent_size = 2 +ij_continuation_indent_size = 4 +indent_style = space + +trim_trailing_whitespace = true + + +[*.{java,j}] +indent_size = 4 +ij_continuation_indent_size = 8 + + +[*.md] +trim_trailing_whitespace = false