Skip to content

Commit

Permalink
Misc: Add an editorconfig
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Naios committed Oct 16, 2017
1 parent 4aa476c commit 850fbbd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 850fbbd

Please sign in to comment.