如何将VS Code终端更改为cmd.exe而不是Powershell?

时间:2019-12-12 23:00:18

标签: visual-studio-code terminal vscode-settings

由于某种原因,我的VS Code终端是Powershell而不是cmd.exe。在我的终端>外部中:Windows Exec设置为C:\ WINDOWS \ System32 \ cmd.exe。但是,当我以VS Code打开终端时,看到PS C:...>。另外,在终端下拉菜单中,我仅将powershell作为选项。

如何将终端切换到CMD.exe?也许我更好的选择是将cmd.exe添加到可用终端列表中,以便我可以在它们之间进行切换?

2 个答案:

答案 0 :(得分:2)

  1. 打开文件->首选项->设置
  2. 选择右上角的用户设置。
  3. 添加以下行

    "terminal.integrated.shell.windows": "cmd.exe"
    

    来源:https://blog.jongallant.com/2017/02/vs-code-integrated-terminal-powershell-default-change-to-cmd/

答案 1 :(得分:0)

版本
enter image description here

第一步: enter image description here

第二步: 选择所需的选项: enter image description here

"terminal.integrated.defaultProfile.windows": "Command Prompt"