如何将键盘快捷方式设置为“终止正在运行的任务"在VSCode中? [英] How to Set a Keyboard Shortcut to "Terminate Running Task" in VSCode?

查看:1588
本文介绍了如何将键盘快捷方式设置为“终止正在运行的任务"在VSCode中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我让我的构建运行我的应用程序,直到我将其杀死.这可以正常工作,但是将终止正在运行的任务"绑定到键盘快捷键会很好.这可能吗?

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?

推荐答案

在更改键绑定时列出了所有命令,因此您可以在用户设置中添加以下内容:

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" } 
]

这篇关于如何将键盘快捷方式设置为“终止正在运行的任务"在VSCode中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆