Add .editorconfig

This commit is contained in:
Markus Gans 2020-03-01 15:42:07 +01:00
parent e5902a6ee6
commit 3102fa6e59
1 changed files with 37 additions and 0 deletions

37
.editorconfig Normal file
View File

@ -0,0 +1,37 @@
# EditorConfig helps maintain consistent coding styles
# for multiple developers working on the same project
# across various editors and IDEs.
#
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length=72
[ChangeLog]
trim_trailing_whitespace = false
[*.txt]
trim_trailing_whitespace = false
[*.md]
trim_trailing_whitespace = false
# Domain-Specific Properties
[*.h]
curly_bracket_next_line = true
spaces_around_operators = true
indent_brace_style = Allman
[*.cpp]
curly_bracket_next_line = true
spaces_around_operators = true
indent_brace_style = Allman