From c10131f02a806e8d67cca95c9f5ba6ec8927a4d6 Mon Sep 17 00:00:00 2001 From: Nicolas Cellier Date: Tue, 24 Dec 2019 23:57:20 +0100 Subject: [PATCH] Initiate .editorconfig files [ci skip] These files enable automatic configuration of text editors regarding indentation, encoding, line-ending etc... Please install the editorconfig plugin if not supported natively See https://editorconfig.org --- .editorconfig | 19 +++++++++++++++++++ platforms/win32/.editorconfig | 11 +++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .editorconfig create mode 100644 platforms/win32/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..a7451ddb01 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# See https://editorconfig.org +# top-most editorconfig file +root = true + +[Makefile] +indent_style = tab + +[*.{c,h,m,st}] +indent_style = tab +indent_size = 4 + +[*.{yml,ston}] +indent_style = space +indent_size = 2 + +[*.{xml}] +indent_style = space +indent_size = 4 + diff --git a/platforms/win32/.editorconfig b/platforms/win32/.editorconfig new file mode 100644 index 0000000000..5f16209ea0 --- /dev/null +++ b/platforms/win32/.editorconfig @@ -0,0 +1,11 @@ +# See https://editorconfig.org + +# a specific style has been used for win32 sources +# This config works for Notepad++ & VisualStudio +# Unfortunately, this does not work in VSCode +# See https://github.com/editorconfig/editorconfig-vscode/issues/190 +[*.{c,h}] +indent_style = space +tab_width = 8 +indent_size = 2 +