diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000000000000000000000000000000000..7b95893b5cc3e00d4587228594ebe18b2ed865b3
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,19 @@
+# http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Apply to all code files
+[*]
+# A newline ending every file
+insert_final_newline = true
+
+# Set default charset
+charset = utf-8
+
+# 4 space indentation
+indent_style = space
+indent_size = 2
+
+# Various options
+trim_trailing_whitespace = true