From 28bb08a81f13afd72fddf4b4d2a429e36df93d2f Mon Sep 17 00:00:00 2001 From: Jake Stine Date: Mon, 5 Apr 2021 21:06:00 -0700 Subject: [PATCH] added .editorconfig to help normalize tabs/whitespace (#392) --- .editorconfig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..55e3e95 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,28 @@ +root = true + +[*] +end_of_line = lf + +[*.go] +indent_style = tab +indent_size = 3 +insert_final_newline = true + +# c/cpp/h rules match libretro (mostly just for libretro.h) +[*.{c,cpp,h,inl}] +indent_style = space +insert_final_newline = true +indent_size = 3 + +[*.{txt,md}] +indent_style = space +indent_size = 4 + +[*,{html,xml,cs}] +indent_style = space +indent_size = 2 + +[*,{csproj,vcxproj,sln}] +indent_style = tab +indent_size = 4 +end_of_line = crlf