Sublime Text Cancel Current Run Hotkey

谁说胖子不能爱 提交于 2021-02-07 04:34:06

问题


In Sublime Text, when I press Ctrl+B, it runs my application. Is there a hotkey to force it to stop running?

I'm debugging some code that often hangs, and Sublime Text ends up completely hanging. I'd like to know what hotkey I can press to stop this.


回答1:


CtrlBreak (Windows/Linux) will cancel a build that is in progress. There is no default key binding for OS X, but you can create your own if you wish. Navigate to Sublime Text -> Preferences -> Key Bindings - User and add the following:

{ "keys": ["super+alt+b"], "command": "exec", "args": {"kill": true} }

If you don't have any custom key bindings yet, make sure to wrap the above with square brackets [].



来源:https://stackoverflow.com/questions/21239201/sublime-text-cancel-current-run-hotkey

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