diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..a55a3def2d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{py,pyw}] +indent_style = space +indent_size = 4 + +[*.{h,c,cxx,cpp,I}] +indent_style = space +indent_size = 2 + +[{CMakeLists.txt,*.cmake}] +indent_style = space +indent_size = 2 + +[*.bat] +end_of_line = crlf