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?
How to Set a Keyboard Shortcut to "Terminate Running Task" in VSCode?
Asked Answered
Also see #46899980 for a method to bind killing a task and accepting the terminate? prompt with a single keybinding. –
Blather
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" }
]
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 ;)
© 2022 - 2024 — McMap. All rights reserved.