Skip to content

Commit

Permalink
Initiate .editorconfig files [ci skip]
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolas-cellier-aka-nice committed Dec 24, 2019
1 parent af24eab commit c10131f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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

11 changes: 11 additions & 0 deletions platforms/win32/.editorconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c10131f

Please sign in to comment.