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