how to override shortcut for multiple cursors subl

2020-06-06 01:30发布

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?

2条回答
老娘就宠你
2楼-- · 2020-06-06 02:00

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.

查看更多
ゆ 、 Hurt°
3楼-- · 2020-06-06 02:02

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} },
查看更多
登录 后发表回答