由于某种原因,我的VS Code终端是Powershell而不是cmd.exe。在我的终端>外部中:Windows Exec设置为C:\ WINDOWS \ System32 \ cmd.exe。但是,当我以VS Code打开终端时,看到PS C:...>。另外,在终端下拉菜单中,我仅将powershell作为选项。
如何将终端切换到CMD.exe?也许我更好的选择是将cmd.exe添加到可用终端列表中,以便我可以在它们之间进行切换?
答案 0 :(得分:2)
添加以下行
"terminal.integrated.shell.windows": "cmd.exe"
来源:https://blog.jongallant.com/2017/02/vs-code-integrated-terminal-powershell-default-change-to-cmd/
答案 1 :(得分:0)