From 0b71bfe4baf17f29f8dd7cbf96ea8b97b5a1af36 Mon Sep 17 00:00:00 2001 From: Hui Peng Date: Sun, 28 Feb 2021 07:36:34 -0500 Subject: [PATCH] Add .editorconfig --- .editorconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..de09e8696 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# CMake files +[{CMakeLists.txt,*.cmake}] +indent_style=space +indent_size = 4 +tab_width = 4 + +# C. CPP source code +[{*.{h,c,cpp}] +indent_style=space +indent_size = 4 +tab_width = 4