Skip to content

Commit 6867dc0

Browse files
schwernkhwilliamson
authored andcommitted
style: Add an EditorConfig file for the C code.
EditorConfig lets editors automatically configure themselves to the project standard. Like embedded VIM and emacs mode lines, but universal. Many editors support it out of the box. Most everything else has a plugin. https://editorconfig.org/ It makes contributing with proper style easier. Pretty basic stuff. * 4 spaces for indentation * UTF-8 * Unix newlines * Strip trailing whitespace * Add a final newline on the file
1 parent b12f49e commit 6867dc0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[**/*.[ch]]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
tab_width = 8
8+
end_of_line = lf
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

0 commit comments

Comments
 (0)