Skip to content

Commit 4ac61b4

Browse files
committed
add editorconfig for consistent indent/trailing space
1 parent b9c7d00 commit 4ac61b4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
10+
[Makefile]
11+
indent_style = tab
12+
13+
[.travis.yml]
14+
indent_size = 4

src/.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# C/C++
2+
[*.{cpp,hpp,cc,cxx,c,h}]
3+
indent_style = space
4+
indent_size = 2

0 commit comments

Comments
 (0)