From edee28801e4dbb5b734b4038d93fe1594e267ab1 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 21 Feb 2018 22:13:58 +0330 Subject: [PATCH] Add .editorconfig (#810) More information: http://editorconfig.org/ --- .editorconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..708188ad8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +trim_trailing_whitespace = true +end_of_line = lf +insert_final_newline = true + +[*.{c,cc,h,hh}] +indent_size = 2 +indent_style = space +tab_width = 8 + +[*.{py,sh}] +indent_style = tab + +[{CMakeLists.txt,*.cmake}] +indent_size = 2