Skip to content

Commit

Permalink
Added configuration file for EditorConfig.
Browse files Browse the repository at this point in the history
This is a universal configuration file for common editor settings such as
indentation sizes. Since we're using 2 spaces for C/C++ this should keep things
consistent (given users have an EditorConfig plugin installed). For example, in
my own case Vim keeps defaulting to 4 spaces which is rather annoying.

See http://editorconfig.org/ for more information about EditorConfig itself.
Yorick Peterse committed Sep 21, 2014
1 parent a724e8c commit 6e97298
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
indent_style = spaces
trim_trailing_whitespace = true

[*.{hpp,cpp,c,h}]
indent_size = 2

0 comments on commit 6e97298

Please sign in to comment.