How to Set a Keyboard Shortcut to "Terminate Running Task" in VSCode?
Asked Answered
S

2

10

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?

Seer answered 24/11, 2015 at 4:6 Comment(1)
Also see #46899980 for a method to bind killing a task and accepting the terminate? prompt with a single keybinding.Blather
S
10

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" } 
]
Seer answered 24/11, 2015 at 4:14 Comment(0)
D
1

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 ;)

Does answered 26/3, 2018 at 7:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.