From 800c48fb1e6b66ce80704112413862d6afcaa3e9 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Sun, 26 May 2024 17:40:51 +0200 Subject: [PATCH] Add configuration file for EditorConfig Handles source and CMake files. Signed-off-by: Yegor Yefremov --- .editorconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..da2e567 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +[{CMakeLists.txt,*.cmake}] +indent_style = space +indent_size = 2 +tab_width = 2 + +[{*.c,*.h}] +indent_style = tab +indent_size = 8 +tab_width = 8