Helps developers maintain consistent coding styles between different editors - Sublime Text plugin
- Total 106K
- Win 36K
- OS X 50K
- Linux 20K
|Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6|
EditorConfig helps developers maintain consistent coding styles between different editors
Support this project & level up your Sublime skills with this excellent Sublime Power User course by Wes Bos
EditorConfig with Package Control and restart Sublime.
See the EditorConfig site for documentation.
Explanation of the properties can be found on the EditorConfig site.
My recommended default settings
# editorconfig.org root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false
If you can't remember all settings managed by the EditorConfig file, you'll love the
editorconfig + tab, and your editor will focus on the first setting's value (indent_style = lf). You can change the value, if you want, and jump to the next setting's value by hitting tab and so on. Settings are somewhat autocompleted, and if you don't remember all possible values, simply remove the setting value to see them all as a comment.
You can be in a context where
editorconfig + tab trigger another snippet. In that case, simply use
Goto anywhere (Ctrl + P on Linux/Windows or ⌘ + P on macOS), type
Snippet: editorconfig and hit Enter.
View active config
The active config is printed in the Sublime console.
Even though there is a
trim_trailing_whitespace property. I would still recommend you set
"draw_white_space": "all" and/or
"trim_trailing_white_space_on_save": true in your Sublime preferences to prevent you from accidentally committing whitespace garbage whenever a project is missing a .editorconfig file.
This plugin does its changes transparently in the background. I would recommend the excellent Modific plugin if you would like to see what changed.
MIT © Sindre Sorhus