From 1965ddc24fd1843b2fe0e3f6cc770d3c60f9cd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 22 Jan 2024 21:36:29 +0100 Subject: [PATCH] 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: --- .editorconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..600cff8bb --- /dev/null +++ b/.editorconfig @@ -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