Visual Studio Code, how to switch from powershell.exe to cmd.exe
Solution 1:
- Press
Ctrl
+Shift
+P
to show all commands. - Type
profile
in the displayed text box to filter the list. - Select
Terminal: Select Default Profile
. - You will be prompted to
Select your preferred terminal shell, you can change this later in your settings or follow the same process as we do now
- Select
Command Prompt
(cmd.exe) - Click the Delete Icon in the shell pane to remove the existing terminal.
- Press
Ctrl
+`
(or View > Terminal in menu) to open a new terminal pane.
Solution 2:
Add this user settings to your File -- Prefernces -- User Settings
// Place your settings in this file to overwrite the default settings
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
}