Add .editorconfig

This should ensure that all editors which support
https://editorconfig.org/ use the correct indentation
with spaces (not tabs) by default.

This is hardly a full specification of our coding style,
but it's a correct subset and better than nothing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3137>
This commit is contained in:
Florian Müllner 2024-01-22 21:36:29 +01:00
parent e58cd282e7
commit 1965ddc24f

23
.editorconfig Normal file
View File

@ -0,0 +1,23 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
[*.js]
indent_size = 4
[*.[ch]]
indent_size = 2
[*.gresource.xml]
indent_size = 2
[*.ui]
indent_size = 2
[meson.build]
indent_size = 2