Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 the Terminal in VS Code I see PS C:...>. Also, in the terminal drop-down I only see powershell as an option.

How do I switch the Terminal to CMD.exe? Or maybe my better option would be to add cmd.exe to the list of available terminals so I can switch between them?

like image 655
dottedquad Avatar asked Dec 12 '19 23:12

dottedquad


2 Answers

  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/

like image 184
LeSchlongLong Avatar answered Sep 24 '22 20:09

LeSchlongLong


To version

enter image description here

First step:

enter image description here

Second step: select the desired option:

enter image description here

Or

"terminal.integrated.defaultProfile.windows": "Command Prompt"
like image 26
Taffarel Xavier Avatar answered Sep 23 '22 20:09

Taffarel Xavier