Sublime Forum

Snippet Trigger

#1

Is it possible to bind something else than tab to trigger a snippet :question:

For example, I want to bind alt+shift+h to trigger this:

<h$1>${0:$TM_SELECTED_TEXT}</h$1>
0 Likes

#2
    { "keys": "alt+shift+h"], "command": "insert_snippet", "args": {"contents": "<h$1>${0:$TM_SELECTED_TEXT}</h$1>"} }

See the default keys for examples of invoking snippets from a snippet file.

0 Likes

#3

Thank you grayrest.
I am now satiated. Thanks to Sublime the awesome text editor :smiley:

0 Likes

#4

thanks to both, that was really useful !!!

0 Likes