Skip to content

Commit 7631be1

Browse files
committed
Add .editorconfig
1 parent 435c0c7 commit 7631be1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://editorconfig.org/
2+
# https://github.com/editorconfig/editorconfig-vim
3+
# https://github.com/editorconfig/editorconfig-emacs
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.py]
15+
indent_size = 4
16+
17+
[*.rst]
18+
indent_size = 4
19+
20+
[*.cpp]
21+
indent_size = 2
22+
23+
[*.hpp]
24+
indent_size = 2
25+
26+
# There may be one in doc/
27+
[Makefile]
28+
indent_style = tab
29+
30+
# https://github.com/microsoft/vscode/issues/1679
31+
[*.md]
32+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)