From 8dd0bf7dc403068acd3b95e36beba554f2bb1e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9nald=20Casagraude?= Date: Sat, 16 Jan 2016 23:29:46 +0100 Subject: [PATCH] Close #50 PR: Add a snippet for EditorConfig file content. --- editorconfig.sublime-snippet | 15 +++++++++++++++ readme.md | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 editorconfig.sublime-snippet 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.