I'll also add : 

```
charset=utf-8
```

 I've met in some placed that option disabled for markdown files:

```
[*.md]
trim_trailing_whitespace = false
```

However, I'm not sure if it was a copy-paste from one source or there is a valid use case where new whitespace in a markdown files is required. yup, for Eclipse guys on Windows. We can always improve this file.

Regarding the specific change for md files, I don't think trailing spaces should be an issue.
Add editor configuration to ease the process of adhering to Checkstyle
We recently added the enforcement of Checkstyle. @ChristianSchwarz requested in https://github.com/mockito/mockito/pull/908#issuecomment-281468837 to also include a default template or at least provide steps for developers to automatically adhere to the style guide. E.g. no manual labor required, the IDE fixes it for the contributor.

We can probably adopt [EditorConfig](http://editorconfig.org/) which is automatically supported by IntelliJ and there is a plugin available for Eclipse users. There is even [support by GitHub themselves](https://github.com/editorconfig/editorconfig.github.com/pull/48).
.github/CONTRIBUTING.md
.editorconfig .github/CONTRIBUTING.md
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..88fd9c2e0b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+indent_style = space
+indent_size = 4
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 13884c3a1e..f08d2c21b2 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -78,6 +78,10 @@ But first of all, make sure that :
 * Line ending character is unix-style **`LF`**
 * New line is added at end of file: `IntelliJ setting > Editor > General > Ensure line feed at file end on save`
 
+For most editors, this should be automatically enforced by [EditorConfig](http://editorconfig.org/).
+Check if your editor has a built-in plugin or if you need to download one.
+IntelliJ has a built-in plugin, for Eclipse you need to download [this plugin](https://github.com/ncjones/editorconfig-eclipse#readme).
+
 ### Imports
 
 Imports must be sorted in the following order
