From d0251b8688fd768727fe8c644ef2fabae168452c Mon Sep 17 00:00:00 2001 From: Thomas Frans <160142177+flyingthingsintothings@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:56:20 +0100 Subject: [PATCH] add `.editorconfig` for consistent code style across editors (#22916) EditorConfig is a well-known convention to share style settings across different editors. Adding one will make it easier for new contributors or people who like to use a different editor to contribute. --- .editorconfig | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..87496c115e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,6 @@ +root = true + +[*.{c,cpp,cc,h,hpp}] +indent_style = tab +tab_width = 8 +max_line_length = 120