| 1 | # EditorConfig — https://editorconfig.org |
| 2 | # Complements .clang-format for non-C++ files |
| 3 | |
| 4 | root = true |
| 5 | |
| 6 | [*] |
| 7 | indent_style = space |
| 8 | indent_size = 4 |
| 9 | end_of_line = crlf |
| 10 | charset = utf-8 |
| 11 | trim_trailing_whitespace = true |
| 12 | insert_final_newline = true |
| 13 | |
| 14 | [*.{cpp,h,hpp,c,idl}] |
| 15 | # C/C++ formatting is handled by .clang-format |
| 16 | indent_size = 4 |
| 17 | |
| 18 | [*.{yml,yaml}] |
| 19 | indent_size = 2 |
| 20 | |
| 21 | [*.{json,jsonc}] |
| 22 | indent_size = 2 |
| 23 | |
| 24 | [*.{md,markdown}] |
| 25 | trim_trailing_whitespace = false |
| 26 | |
| 27 | [*.py] |
| 28 | indent_size = 4 |
| 29 | |
| 30 | [*.{ps1,psm1,psd1}] |
| 31 | indent_size = 4 |
| 32 | |
| 33 | [*.{xml,resw,resx,props,targets,nuspec}] |
| 34 | indent_size = 2 |
| 35 | |
| 36 | [*.cmake] |
| 37 | indent_size = 4 |
| 38 | |
| 39 | [CMakeLists.txt] |
| 40 | indent_size = 4 |
| 41 | |
| 42 | [Makefile] |
| 43 | indent_style = tab |