Sublime Text – how to figure out internal command name for key binding?

Hit Ctrl` (backtick) to open the console, then enter

sublime.log_commands(True)

to turn on command logging. Go through the menus and click your target, and

command: insert_snippet {"name": "Packages/XML/long-tag.sublime-snippet"}

comes up. Enter the following into your Preferences -> Key Bindings - User file:

{ "keys": ["ctrl+alt+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } }

(changing the key combo if you wish) and you should be all set. Once you’re done, go back to the console and enter

sublime.log_commands(False)

to turn off logging of every single action.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)