Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop a running PowerShell command in Visual Studio Code?

I cannot find how to stop a running PowerShell command using a keyboard shortcut. My command is:

do {ping 127.0.0.1} until (Test-Path -Path C:\Users\foobar)

How can I stop this command using a keyboard shortcut? I can press the recycle bin icon but that kills my PowerShell extensions completely and VS Code then asks to restart it.

I tried some commands on the internet like Ctrl+Alt+M, but it does not stop the execution.

like image 794
RalJans Avatar asked Sep 06 '25 16:09

RalJans


1 Answers

Use shortcut : CTRL+BREAK / CTRL+C

See here

like image 182
FiazMR Avatar answered Sep 09 '25 21:09

FiazMR