我找不到如何使用键盘快捷键停止正在运行的 PowerShell 命令。我的命令是:
do {ping 127.0.0.1} until (Test-Path -Path C:\Users\foobar)
如何使用键盘快捷键停止此命令? 我可以按回收站图标,但这会完全终止我的 PowerShell 扩展,然后 VS Code 会要求重新启动它。
我尝试了网上的一些命令,例如Ctrl+Alt+M,但它并没有停止执行。
最佳答案
(从 Olaf 的评论迁移)
[The default command for ending a running PowerShell script or command is] just like in the console:
Ctrl+C
关于powershell - 如何在 Visual Studio Code 中停止正在运行的 PowerShell 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54503493/