diff --git a/.editorconfig b/.editorconfig index 4febab2f1..abd071783 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,15 +1,10 @@ root=true -# TODO 不是所有文件都是 UTF-8 格式(会影响二进制文件) -[*] +[*.{adoc,bat,groovy,html,java,js,jsp,kt,kts,md,properties,py,rb,sh,sql,svg,txt,xml,xsd}] charset = utf-8 -[*.java] +[*.{groovy,java,kt,kts,xml,xsd}] indent_style = space indent_size = 4 continuation_indent_size = 8 - -[*.xml] -indent_style = space -indent_size = 4 -continuation_indent_size = 4 +end_of_line = lf