| 1 |
; |
| 2 |
; Global Editor Config for Fifengine |
| 3 |
; |
| 4 |
; See http://editorconfig.org/ for more information on this file. |
| 5 |
;------------------------------------------------------------------------------ |
| 6 |
|
| 7 |
; Top level editor config. |
| 8 |
root = true |
| 9 |
|
| 10 |
; use Unix style new lines with new line ending and trim whitespace |
| 11 |
[*] |
| 12 |
charset = utf-8 |
| 13 |
indent_style = space |
| 14 |
trim_trailing_whitespace = true |
| 15 |
insert_final_newline = true |
| 16 |
end_of_line = lf |
| 17 |
|
| 18 |
[*.{cpp,h}] |
| 19 |
indent_size = 4 |
| 20 |
max_line_length = 80 |
| 21 |
|
| 22 |
; Python: PEP8 defines 4 spaces for indentation |
| 23 |
[*.py] |
| 24 |
indent_size = 4 |
| 25 |
|
| 26 |
[*.{cmake,json,sh,yaml,yml},CMakeLists.txt] |
| 27 |
indent_size = 2 |
| 28 |
|
| 29 |
; do not remove spaces in docs |
| 30 |
[*.{md, asciidoc, asc}] |
| 31 |
trim_trailing_whitespace = false |