EditorConfig helps maintain consistent coding styles

You can configure the end-of-line and indentation styles for different file type in a .editorconfig file. Example:

1
2
3
4
5
6
7
8
root = true

[*.go]
indent_style = tab
indent_size = 4

[Makefile]
indent_style = tab

Works automatically in IntelliJ Idea, requires a plugin for Atom, Sublime and VS Code.