问题
On OS X, I have ctrl+space mapped systemwide to "Help...Search". However, in Sublime Text 3, the default for ctrl+space is auto-complete. In Sublime Text 2, I was able to edit the default keymap and just delete it, but it seems like you can no longer edit the default keymap anymore.
Is there any way in Sublime Text 3 to "undefine" a keymap so that Sublime will allow the operating system wide shortcut to take effect instead?
回答1:
Go to /Applications
, left-click on Sublime Text.app
, and select "Show Package Contents". Open Contents/MacOS/Packages/Default.sublime-package
in TextWrangler (it's a free d/l if you don't have it) - it supports editing ZIP files. You should now be able to edit Default (OSX).sublime-keymap
and save the whole package. Restart ST3 and you should be good!
回答2:
- Select menu. Sublime Text > Preferences > Key Bindings - Default
- Default (OSX).sublime-keymap (read-only) will open.
- Save as new file has same name to ~/Library/Application Support/Sublime Text 3/Packages/Default (not exist. create new folder).
- Close (2)
- Do (1) again.
- You can edit default keymap :)
来源:https://stackoverflow.com/questions/17413163/unmap-ctrlspace-in-sublime-text-3