How do I change my VS Code terminal to cmd.exe instead of powershell?

前端 未结 2 964
余生分开走
余生分开走 2021-01-24 23:17

For some reason my VS Code terminal is Powershell instead of cmd.exe. In my Terminal > External: Windows Exec is set to C:\\WINDOWS\\System32\\cmd.exe. However, when I open th

相关标签:
2条回答
  • 2021-01-24 23:27
    1. Open File -> Preferences -> Settings
    2. Select User Settings in upper right corner.
    3. Add the following line

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

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

    0 讨论(0)
  • 2021-01-24 23:43

    You can use View / Command Palete / Terminal: select default terminal to select from the range of detected terminals. Mine shows PS and cmd.exe which had to be changed as PS is disabled as a security policy in our environment.

    0 讨论(0)
提交回复
热议问题