From fd2b8536fcef04a25cca3a116102b8261a4b1361 Mon Sep 17 00:00:00 2001 From: Gormogon Date: Sat, 13 Jun 2015 21:55:31 -0400 Subject: [PATCH 1/2] Update HACKING.md Added reference to EditorConfig --- HACKING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HACKING.md b/HACKING.md index 4adcc4d43..4881dec03 100644 --- a/HACKING.md +++ b/HACKING.md @@ -70,6 +70,8 @@ You can use the `hacking/calamaresstyle` script to run [astyle](http://astyle.sf.net) on your code and have it formatted the right way. +**NOTE:** An .editorconfig file is included to assist with formatting. In order to take advantage of this functionality you will need to acquire the [EditorConfig](http://editorconfig.org/#download) plug-in for your editor. + Naming ------ * Use CamelCase for everything. From 84984163be1d6c3853269f7168d9ec4f6074f607 Mon Sep 17 00:00:00 2001 From: Gormogon Date: Sat, 13 Jun 2015 21:56:21 -0400 Subject: [PATCH 2/2] Added .editorconfig --- .editorconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..b2ae0dd2b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# http://EditorConfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true + +[*.{py,cpp,h}] +indent_style = space +indent_size = 4 +insert_final_newline = true