diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..fae9b015b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: 2021 The Nautilus Authors +# SPDX-License-Identifier: CC0-1.0 + +root = true + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true + +[*.[ch]] +indent_size = 4 +indent_style = space +insert_final_newline = true +# For the legacy tabs which still exist in the code: +tab_width = 8 + +[*.ui] +indent_size = 2 +indent_style = space +insert_final_newline = true + +[*.xml] +indent_size = 2 +indent_style = space + +[meson.build] +indent_size = 2 +indent_style = space \ No newline at end of file diff --git a/src/gtk/.editorconfig b/src/gtk/.editorconfig new file mode 100644 index 000000000..e1ee5052a --- /dev/null +++ b/src/gtk/.editorconfig @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2021 The GTK Authors +# SPDX-License-Identifier: CC0-1.0 + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true + +[*.[ch]] +indent_size = 2 +indent_style = space +insert_final_newline = true +# For the legacy tabs which still exist in the code: +tab_width = 8 + +[*.ui] +indent_size = 2 +indent_style = space +insert_final_newline = true + +[*.xml] +indent_size = 2 +indent_style = space + +[meson.build] +indent_size = 2 +indent_style = space + +[*.md] +max_line_length = 80