Add .editorconfig for C and CMake files
authorYegor Yefremov <yegorslists@googlemail.com>
Sat, 5 Aug 2023 06:32:58 +0000 (08:32 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 29 Aug 2023 13:09:12 +0000 (15:09 +0200)
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..40392cd
--- /dev/null
@@ -0,0 +1,16 @@
+root = true
+
+[*]
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = false
+
+[{CMakeLists.txt,*.cmake}]
+indent_style = space
+indent_size = 2
+tab_width = 2
+
+[{*.c,*.h}]
+indent_style = space
+indent_size = 4
+tab_width = 4