From bcbae86b9f869414866238a939232c5771e0f695 Mon Sep 17 00:00:00 2001 From: Thomas Frans Date: Fri, 22 Mar 2024 14:53:49 +0100 Subject: [PATCH] code: add more style options in `.editorconfig` --- .editorconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 87496c115e..50a87fd839 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,14 @@ root = true -[*.{c,cpp,cc,h,hpp}] +[*] +insert_final_newline = false + +[{*.{c,cpp,cc,h,hpp},CMakeLists.txt,Kconfig}] indent_style = tab tab_width = 8 +# Not in the official standard, but supported by many editors max_line_length = 120 + +[*.yaml] +indent_style = space +indent_size = 2