Really like this project and how it has been adopted by so many editors automatically by default. Other editors offer a plugin to be activated and this would be easy to configure as well. The pattern is very straight forward as well.


This editor seems to load this file automatically on load. If you made a change in the .editorconfig file you should close any files you have open and reopen them. Or just quit VSCode and restart the project.


There is a command to apply the .editorconfig settings to a buffer called editorconfig-format-buffer. After ran, it will update the buffer with the changes made to the .editorconfig file.

Project templates


This is a good one to set for all files of your code:

# Set default charset
charset = utf-8




# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

# Set default charset
charset = utf-8

# Tab indentation (no size specified)
indent_style = tab

trim_trailing_whitespace = false

# Matches the exact files either package.json or .travis.yml
indent_style = space
indent_size = 2