Sublime Text Hotkey/Keybinding for Multiple Cursors on Mac OS X

https://www.sublimetext.com/docs/2/multiple_selection_with_the_keyboard.html

http://www.wdtutorials.com/2013/06/23/sublime-text-keyboard-shortcuts-cheat-sheet-win-os-x-and-linux#.U4SkQ5RdW8E

Both of those sites suggest that Ctrl + Shift + Up/Down will add another cursor. But my Mac OS X seems to have some behavior already set to that. It zooms all of the windows out or in depending on whether I use up or down.

Does anyone know a) how to disable this OS X functionality? or b) how to change the key binding for this in Sublime's "Default (OSX).sublime-keymap -User" file?

Happy trails! -Pete


I figured it out after reading this: https://discussions.apple.com/thread/3331893?tstart=0

Basically, I just had to disable "Mission Control" and "Application Windows" in System Preferences >> Keyboard >> Shortcuts.

键盘快捷键首选项


Add these lines to Key Bindings-User in Sublime settings

{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },

{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} }

and you are good to go without changing anything in the preferences. now multicursors will work with

ctrl+alt(option)+up/down


You can use additional fn key to get pretty much the same key bindings usability: fn + up = pageup on mac.

{ "keys": ["ctrl+shift+pageup"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+shift+pagedown"], "command": "select_lines", "args": {"forward": true} }

I found it quite usable for myself and there is no need to disable "Mission Control" and "Application Windows" in that case.

链接地址: http://www.djcxy.com/p/90916.html

上一篇: 崇高文本2:无法覆盖全局文件

下一篇: 对Mac OS X上的多个游标使用崇高文本快捷键/键盘绑定