Reputation: 713
I have Markdown preview package installed in my sublime text and I want to create a shortcut / key binding for it, let's say:
ctrl + shift + p
Upvotes: 5
Views: 2196
Reputation: 19754
In the ST console, enter sublime.log_commands(True)
to see what command is being executed form the command palette. Alternatively you can look in the Default.sublime-menu
file for the appropriate caption/command pair. After you've done that, you can create a custom key binding. To do this, open your user key binding file by going to Preferences -> Key Binding - User
. Enter something like the following.
[
{"keys": ["ctrl+shift+p"], "command": "<preview_command_here>"}
]
The settings file is just a list, so if you already have an entry, you do not need the square brackets.
Upvotes: 9