Is there a one-click solution to stop the currently running command in the terminal and run it again?
Currently, I have to go to terminal -> ctrl+c
to halt execution -> run the command again.
Suppose npm run dev
is running; then it should stop and run it again after hitting some shortcut. If the single command is not possible, then I can also batch multiple commands in a single shortcut using Commands extension.
2
Answers
@Mark answer helped and if someone's using commands extension, you can batch these commands into one:
settings.json:
Perhaps this combination of commands – I don’t know the extension syntax you use: