Add configuration file for EditorConfig

Handles source and CMake files.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
pull/533/head
Yegor Yefremov 2024-05-26 17:40:51 +02:00
parent 6c893e5c4f
commit 800c48fb1e
1 changed files with 16 additions and 0 deletions

16
.editorconfig 100644
View File

@ -0,0 +1,16 @@
root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[{CMakeLists.txt,*.cmake}]
indent_style = space
indent_size = 2
tab_width = 2
[{*.c,*.h}]
indent_style = tab
indent_size = 8
tab_width = 8