sublimetext2 - Sublime text - Tab remap -
is there way change tab
different key trigger snippets in sublime text? analouge, in vim re-define map leader \
to, say, ,
.
you can edit key bindings (preferences → key bindgins - user
) (you can search key bindings
in command palette). , add following:
{ "keys": ["the_shortcut_you_want"], "command": "insert_best_completion", "args": {"default": "default_character", "exact": false} }
the args not mandatory if don't want shortcut if not used in snippet context.
edit: i've been asked provide real example, apparently not enough.
use provided, yet not related example:
{ "keys": [","], "command": "insert_best_completion", "args": {"default": ",", "exact": false} }
this should comma trigger snippets. edit2: can't test right now, think that's kind of thing tested. mine shortcut ctrl+shift+d
, more like:
{ "keys": ["ctrl+shift+d"], "command": "insert_best_completion", }
Comments
Post a Comment