diff --git a/editorconfig.sublime-snippet b/editorconfig.sublime-snippet new file mode 100644 index 0000000..55bd8b8 --- /dev/null +++ b/editorconfig.sublime-snippet @@ -0,0 +1,15 @@ + + + editorconfig + source.ini.editorconfig,text.plain + diff --git a/readme.md b/readme.md index 63a6c44..4b099b0 100644 --- a/readme.md +++ b/readme.md @@ -48,6 +48,14 @@ trim_trailing_whitespace = false ## Tips +### EditorConfig snippet + +If you can't remember all settings managed by the EditorConfig file, you'll love the `editorconfig` snippet. + +Just type `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 OSX), type `editorconfig`, select `Snippet: editorconfig` and hit Enter. + ### View active config The active config is printed in the Sublime console.