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:
parent
e58cd282e7
commit
1965ddc24f
23
.editorconfig
Normal file
23
.editorconfig
Normal 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
|
Loading…
x
Reference in New Issue
Block a user