2019-10-24 18:06:28 +08:00
|
|
|
|
# EditorConfig 用于在 IDE 中检查代码的基本 Code Style
|
|
|
|
|
# @see: https://editorconfig.org/
|
|
|
|
|
|
|
|
|
|
# 配置说明:
|
|
|
|
|
# 所有文件换行使用 Unix 风格(LF),*.bat 文件使用 Windows 风格(CRLF)
|
|
|
|
|
# java / sh 文件缩进 4 个空格,其他所有文件缩进 2 个空格
|
2017-10-20 13:22:50 +08:00
|
|
|
|
|
|
|
|
|
root = true
|
|
|
|
|
|
|
|
|
|
[*]
|
|
|
|
|
end_of_line = lf
|
|
|
|
|
indent_size = 2
|
2019-10-24 18:06:28 +08:00
|
|
|
|
indent_style = tab
|
2017-10-20 13:22:50 +08:00
|
|
|
|
max_line_length = 120
|
|
|
|
|
charset = utf-8
|
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
|
insert_final_newline = true
|
|
|
|
|
|
2019-10-24 18:06:28 +08:00
|
|
|
|
[*.{bat, cmd}]
|
2017-10-20 13:22:50 +08:00
|
|
|
|
end_of_line = crlf
|
|
|
|
|
|
2019-10-24 18:06:28 +08:00
|
|
|
|
[*.{java, groovy, kt, sh}]
|
2018-11-01 19:37:47 +08:00
|
|
|
|
indent_size = 4
|
|
|
|
|
|
2017-10-20 13:22:50 +08:00
|
|
|
|
[*.md]
|
|
|
|
|
max_line_length = 0
|
|
|
|
|
trim_trailing_whitespace = false
|