From 85dbd1d2b2414b0ebf581c79e3150964210d097f Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 16 Sep 2016 10:44:33 -0400 Subject: [PATCH] Add EditorConfig support [EditorConfig](http://editorconfig.org/) will automatically configure text editors and IDEs to RetroArch's coding standards. Helps keeps things to the 3-space tabbing. --- .editorconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..572c3c9ccd --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# EditorConfig: http://EditorConfig.org + +# 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 +charset = utf-8 + +# 3 space indentation +[*.{c,h,js,css,html}] +indent_style = space +indent_size = 3 + +# Tab indentation +[Makefile*] +indent_style = tab