Skip to content

Commit b196726

Browse files
committed
chore: add .editorconfig for consistent code formatting
Enforce consistent 4-space indentation for C source files and proper line ending handling.
1 parent d1f551e commit b196726

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.editorconfig

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

0 commit comments

Comments
 (0)