From a083023ffb63c0c70302acc22341265ed6346a34 Mon Sep 17 00:00:00 2001 From: Hans Christian Reinl Date: Wed, 26 Sep 2012 11:39:49 +0200 Subject: [PATCH] Add .editorconfig file EditorConfig helps to provide consistent coding style between different editors. This commit includes an .editorconfig file with some defaults: - default file-charset UTF-8 - whitespace at the end of a line is trimmed - each file has at least one line at the end of the document that is empty - line-endings are `lf` which is a good unix-default and works cross OS - White-space is normally treated as spaces and one tab is 4 spaces. --- .editorconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..71cf2bb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# editorconfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf +indent_style = space +indent_size = 4 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true