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 +