问题
I am using linux [FEDORA 20]. I want to override shortcut key for multiple cursor which is ctrl+alt+up/down
because it is used for switching workspace in fedora.
I tired to search shortcut in Preferences>key binding - default
.
But couldn't find it.
So how do i override it?
回答1:
CtrlAlt↑/↓ is the keyboard shortcut for multiple selection in Windows, not Linux. The following is from the Linux keymap file:
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
回答2:
Go to
Preferences > Key Binding - User
and add following lines to override default key bindings.
{ "keys": ["ctrl+space+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+space+up"], "command": "select_lines", "args": {"forward": false} }
where
ctrl+space+up/down
is your key bindings.
来源:https://stackoverflow.com/questions/26900984/how-to-override-shortcut-for-multiple-cursors-sublime-text-3