how to override shortcut for multiple cursors sublime text 3?

左心房为你撑大大i 提交于 2019-12-21 02:36:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!