# .editorconfig — 编辑器统一配置
# 部署到目标项目根目录下重命名为 .editorconfig
# 参考：https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{cpp,cxx,cc,h,hpp,hxx}]
indent_style = space
indent_size = 4

[*.{sh,bash}]
indent_style = space
indent_size = 4
end_of_line = lf

[Makefile]
indent_style = tab
indent_size = 4

[*.{mk,GNUmakefile}]
indent_style = tab
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{yaml,yml}]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2
