How to Set a Keyboard Shortcut to “Terminate Running Task” in VSCode?

强颜欢笑 提交于 2019-12-10 01:59:08

问题


I have my build run my application until I kill it. This works fine, but it would be nice to bind "Terminate Running Tasks" to a keyboard shortcut. Is this possible?


回答1:


All the commands are listed when you go to change a key binding, so you can add something like this to the user settings:

[
    { "key": "shift+cmd+s", "command": "workbench.action.tasks.terminate" } 
]



回答2:


You could also just write exit in the terminal and that would kill it. Just keep in mind that this might not work on everything but it's worth a try ;)



来源:https://stackoverflow.com/questions/33885264/how-to-set-a-keyboard-shortcut-to-terminate-running-task-in-vscode

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