diff options
author | Naios <naios-dev@live.de> | 2017-10-05 00:49:45 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2017-10-16 22:54:23 +0200 |
commit | 561169d8df100baf102a55d4117d11b0321d24bb (patch) | |
tree | 9a60d061e561c3dace8d4e62ce5d42f8f9664289 /.editorconfig | |
parent | 24d3260ab890773812a8ee2049f225f1e5c10e48 (diff) |
Misc: Add an editorconfig
* This is a platform independent config which is
supported in many editors to set the charset and intendation
automatically on a per project basis.
* The latin1 charset is a workaround for the MSVC
editorconfig support which stores utf-8 with bom
instead of none.
(cherry picked from commit 850fbbd6a939a7a577bdd8fe840b0baa66b1ec99)
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..e19011ac4d6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +[*] +charset = utf-8 +indent_size = 4 +tab_width = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 80 + +[*.{c,h,cpp,hpp,inl}] +charset = latin1 |