I am launching a task and it works great but its a task that stays running in the current shell. Is there anyway to kill this task from the editor when you are done?
Kill Process that is created from running a task
Asked Answered
#33885764 –
Inflated
Yeah debugger is annoying for me when it spawns. For a server I use lsof -i tcp:3333 (or whatever the port is) and then kill -9 PID –
Beanie
Try Ctrl+Shift+P
, start typing term
and the command palette will highlight "terminate running task", press Enter
and you're done
Not sure if you have tried.
- Press
Ctrl+P
. - Type
>task terminate
.
Typing
>
in Quick Open Ctrl+P
is the equivalent of Command Palette Ctrl+Shift+P
(for others like me who missed typing >
) –
Thursday In the task Runner Explorer window, you'll see a tab that has "(running)" in it's title. Click the X to close the tab, and visual studio will ask you if you want to terminate the task. If you chose to terminate it, the tab will disappear.
To kill a C++ Code Runner task, press Ctrl + Alt + M.
© 2022 - 2024 — McMap. All rights reserved.