Using EditorConfig
An example of using and .editorconfig file.
This is one of the most useful configuration files that I’ve ran across in a while.
You can view the details of this configuration file on the editorconfig website.
I commonly use something like the following:
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
[Makefile]
indent_style = tab
indent_size = 4
The convenient things about this is that it seems to really work across a wide range of editors. It seems to work with the editors/IDEs that I use on a regular basis:
Note
Some editors require plugins