Visual Studio code, how to switch from powershell.exe to cmd.exe

I would like to switch from powershell.exe to cmd.exe in the terminal, but I'm not sure how to do this. A screenshot is provided for clarification.

screenshot 1 screenshot 2

+19
source share
4 answers
  1. Press Ctrl + Shift + P to show all the commands.
  2. Type shell in the displayed text box to filter the list.
  3. Select Terminal: Select Default Shell .
  4. 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
  5. Choose Command Prompt (cmd.exe)
  6. Click the Delete icon in the shell panel to delete an existing terminal.
  7. Press Ctrl + ' (or View> Terminal in the menu) to open a new terminal panel.
+46
source

Add these user preferences to your file - Prefernces - User Preferences

 // Place your settings in this file to overwrite the default settings { "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", } 
+5
source

open settings (ctrl + comma)

find terminal.integrated.shell.windows

replace its value with C:\\Windows\\System32\\cmd.exe

0
source

I also ran into this problem when I clicked on the terminal. It showed Powershell, but not the command line, so I took the following steps to get the command line in Visual Studio:

  1. View → Command Palette → Toggle Integrated Terminal
  2. Open a terminal using the keyboard shortcut ctrl + ' or View → terminal
  3. Write the command as cmd.exe and run
0
source

Source: https://habr.com/ru/post/1265319/


All Articles