Unmap ctrl+space in Sublime Text 3

时光怂恿深爱的人放手 提交于 2019-12-11 13:34:26

问题


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:


  1. Select menu. Sublime Text > Preferences > Key Bindings - Default
  2. Default (OSX).sublime-keymap (read-only) will open.
  3. Save as new file has same name to ~/Library/Application Support/Sublime Text 3/Packages/Default (not exist. create new folder).
  4. Close (2)
  5. Do (1) again.
  6. You can edit default keymap :)


来源:https://stackoverflow.com/questions/17413163/unmap-ctrlspace-in-sublime-text-3

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