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.
This commit is contained in:
Thomas Frans 2024-03-22 01:56:20 +01:00 committed by GitHub
parent 82a1aa37db
commit d0251b8688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

6
.editorconfig Normal file
View File

@ -0,0 +1,6 @@
root = true
[*.{c,cpp,cc,h,hpp}]
indent_style = tab
tab_width = 8
max_line_length = 120