问题
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