Setting up Sublime Text 2 Custom Keyboard Shortcuts
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction
--
Chapters
00:00 Setting Up Sublime Text 2 Custom Keyboard Shortcuts
00:38 Accepted Answer Score 21
01:24 Answer 2 Score 1
01:47 Thank you
--
Full question
https://superuser.com/questions/492021/s...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#sublimetext2
#avk47
ACCEPTED ANSWER
Score 21
Custom key bindings:
Open Preferences > Key Bindings-Default
read through or search for the binding you want to change. Copy the command and then open Preferences > Key Bindings-User
. Paste and edit the command.
To change the bindings for switching panes, edit these commands. Notice how keys are separated by +
and the end of each line (except the last) needs a comma. I'm not sure if you can set it up so you can move to right/left panes. The way I set it up is ctrl + 1 switches to the first pane, etc.
// panes
{ "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["ctrl+2"], "command": "focus_group", "args": { "group": 1 } },
{ "keys": ["ctrl+3"], "command": "focus_group", "args": { "group": 2 } }
More info: http://docs.sublimetext.info/en/latest/customization/key_bindings.html
ANSWER 2
Score 1
To add to @d_rail's answer,
You can create a simple (ex:f12), combination (ex: ctrl+Y) and complex (ex: ctrl+a, ctrl+b) shortcut keys as long as you know the command name of the operation.
See here to know more: Complete list of Sublime Text 3 commands