Skip to content

Commit a97681a

Browse files
authored
Add .editorconfig (#482)
https://editorconfig.org/
1 parent 1870b8e commit a97681a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.{cpp,h,hpp,c}]
12+
indent_size = 2
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[*.py]
18+
indent_size = 4
19+
20+
[Makefile]
21+
indent_style = tab
22+
23+
[{CMakeLists.txt,*.cmake}]
24+
indent_size = 2
25+
26+
[*.{md,rst}]
27+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)