From d13fc9dae9c66d38a4c5e6239fb92a71e8f06307 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 6 Sep 2023 16:03:11 +0800 Subject: [PATCH] Add .editorconfig --- .editorconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cf30e9d --- /dev/null +++ b/.editorconfig @@ -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