Skip to content

Commit 84ead4c

Browse files
committed
Add EditorConfig file to fix some code formatting
1 parent bc786d1 commit 84ead4c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[{CMakeLists.txt,*.cmake,Makefile}]
10+
indent_style = tab
11+
indent_size = 4
12+
13+
[{*.cpp,*.h}]
14+
indent_style = tab
15+
indent_size = 4
16+
17+
[ext/**/{*.cpp,*.h}]
18+
indent_style = ignore
19+
indent_size = ignore
20+
21+
[*.json,*.yml,*.rc,*.adoc]
22+
indent_style = space
23+
indent_size = 2
24+
25+
[*.md]
26+
indent_style = space
27+
indent_size = 4
28+
29+
[*.xml]
30+
indent_style = tab
31+
indent_size = 4

0 commit comments

Comments
 (0)