From a2b9f08c0e16048812c862dd7238b8733496f7eb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 16 Apr 2019 08:08:18 -0400 Subject: [PATCH] Add .editorconfig file This file helps editors set the indentation (and other whitespace) settings correctly to match the project's coding style. For now I have just put some simple settings for C, Swig interface and Python files, but we can add more as needed. See here for more details: https://editorconfig.org/ Signed-off-by: Simon Marchi --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cd6d86c9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{c,h,i}] +indent_style = tab +tab_width = 8 + +[*.py] +indent_style = space +indent_size = 4 -- 2.34.1