diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000000000000000000000000000000000..f7cd6fa29df14e7d014463efe7de3ffc90e7c15c
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,15 @@
+# To use this config on you editor, follow the instructions at:
+# http://editorconfig.org
+
+# SPDX-License-Identifier: CC0-1.0
+# SPDX-FileCopyrightText: 2018-2021 Collabora, Ltd. and the Monado contributors
+
+root = true
+
+[*]
+charset = utf-8
+insert_final_newline = true
+
+[*.md]
+indent_size = 2
+trim_trailing_whitespace = true