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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -