EditorConfig helps developers maintain consistent coding styles between different editors
$ apm install editorconfig
Or, Settings → Install → Search for editorconfig
See the EditorConfig documentation.
- root
- indent_style
- indent_size
- charset (supported values:
latin1,utf-8,utf-16be,utf-16le) - end_of_line (supported values:
lf,crlf)
- Applies the above settings from your
.editorconfigfile - Syntax highlights
.editorconfigfiles - Ability to generate an
.editorconfigfile based on the current settings
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true # doesn't work yet
insert_final_newline = true # doesn't work yetYou can generate an .editorconfig file based on the current setting by opening the Command Palette and choosing EditorConfig: Generate Config.
MIT © Sindre Sorhus
