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