summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
Diffstat (limited to '.editorconfig')
-rwxr-xr-x.editorconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100755
index 0000000..8026a9f
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,15 @@
+# Editor configuration file
+# https://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# General stype
+[*]
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+# Indentation using spaces
+[*.{c,cpp,h}]
+indent_style = space
+indent_size = 2