EditorConfig ![Build Status](https://camo.githubusercontent.com/fb19c81aceabebda25f76eacf0837559b3c34c61fbf4937345986feac103b899/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f61746f6d2d656469746f72636f6e6669672e7376673f6272616e63683d6d6173746572)
EditorConfig helps developers maintain consistent coding styles between different editors
Install
$ apm install editorconfig
Or, Settings → Install → Search for editorconfig
Getting started
See the EditorConfig documentation.
Supported properties
- root
- indent_style
- indent_size
- charset (supported values:
latin1
,utf-8
,utf-16be
,utf-16le
) - end_of_line (supported values:
lf
,crlf
)
Features
- Applies the above settings from your
.editorconfig
file - Syntax highlights
.editorconfig
files - Ability to generate an
.editorconfig
file based on the current settings
Example file
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 yet
Generate config
You can generate an .editorconfig
file based on the current setting by opening the Command Palette and choosing EditorConfig: Generate Config
.
License
MIT © Sindre Sorhus