Add .editorconfig

This commit is contained in:
Aoran Zeng 2023-09-06 16:03:11 +08:00
parent 18863a065b
commit d13fc9dae9

19
.editorconfig Normal file
View File

@ -0,0 +1,19 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
[*.{c,C,cpp,cxx,cc,h,hpp}]
indent_style = space
indent_size = 2
[{Makefile,makefile,*.{mk,make,makefile}]
indent_style = tab
[*.md]
trim_trailing_whitespace = true