I've followed several tuts and SO advice but Sublime Text User bindings are not working as follows:
[
{ "keys": ["ctrl+shift+u"], "command": "upperCase" }
]
I have removed the possible conflicting
{ "keys": ["ctrl+shift+u"], "command": "soft_redo" },
From default keybindings... Can anyone help me get custom keybindings to work? Also "command": "upperCase" is that just a command built into ST? Where can I find a comprehensive list of such commands?
To determine the name of the command to use in a keybinding, first open the console with Ctrl` (backtick) or by selecting View -> Show Console
. Enter the following command:
sublime.log_commands(True)
and hit Enter. With the console still open, select the option you want from the menu (in this case Edit -> Convert Case -> Upper Case
). The following will then appear in the console:
command: upper_case
You can now use this command in your key binding.
When you're done, enter
sublime.log_commands(False)
in the console to stop logging, then close the console by hitting Ctrl` or Esc.
If you want to find out what commands the different key bindings and menu options fire, and you don't want to use the method above, take a look at the default key bindings list (Preferences -> Key Bindings-Default
) and/or the file Packages/Default/Main.sublime-menu
where Packages
is the folder opened when you select Preferences -> Browse Packages...
.