Adding an editorconfig file to define coding style
This is used by github when displaying code in browser
E.g. this fixes a very long standing issue when glancing through code on
gitub, be that for review or online source files: they insist on 8 char tabs,
while we use tabs with width 4.
This can also be used by any self-respecting editor (read: Emacs), but also by
lesser ones (read: vim), and the rest (atom, geany, netbeans, eclipse, xcode,
sublime, textmate, visual studio, etc.)
See http://editorconfig.org/ for full list, and more.
2016-09-17 06:29:10 -07:00
|
|
|
# EditorConfig http://EditorConfig.org
|
|
|
|
|
|
|
|
# top-most EditorConfig file
|
|
|
|
root = true
|
|
|
|
|
|
|
|
# all files, globally use these rules:
|
|
|
|
[*]
|
2016-11-07 08:35:22 -08:00
|
|
|
indent_style = space
|
Adding an editorconfig file to define coding style
This is used by github when displaying code in browser
E.g. this fixes a very long standing issue when glancing through code on
gitub, be that for review or online source files: they insist on 8 char tabs,
while we use tabs with width 4.
This can also be used by any self-respecting editor (read: Emacs), but also by
lesser ones (read: vim), and the rest (atom, geany, netbeans, eclipse, xcode,
sublime, textmate, visual studio, etc.)
See http://editorconfig.org/ for full list, and more.
2016-09-17 06:29:10 -07:00
|
|
|
indent_size = 4
|
2016-09-17 06:37:54 -07:00
|
|
|
end_of_line = lf
|
|
|
|
insert_final_newline = true
|
|
|
|
charset = utf-8
|
2016-11-07 08:35:22 -08:00
|
|
|
trim_trailing_whitespace = true
|
|
|
|
|
|
|
|
# but definitly tabs for:
|
|
|
|
[*.{cpp,h,lua,am}]
|
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
# we apparently use spaces for:
|
|
|
|
[*.{json,txt,md,yml}]
|
|
|
|
indent_style = space
|