Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open CMD in the Visual Studio Code terminal

Tags:

Whenever I open the terminal in Visual Studio Code, I get a bash shell. I want to add CMD as a second shell. To do that, I went through the VS Code documentation and found this command:

CTRL+SHIFT+`

But it only opens a second bash shell. Is there a shortcut for opening CMD in the integrated terminal, rather than opening it in an external console?

Screengrab showing console window in VSCode

like image 646
vineethc4f Avatar asked Sep 08 '17 02:09

vineethc4f


People also ask

How do I run a command in Visual Studio code terminal?

Launching from the command line# You can also run VS Code from the terminal by typing 'code' after adding it to the path: Launch VS Code. Open the Command Palette (Cmd+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

How do I open Visual Studio command prompt?

Start in Visual StudioOn the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.

How do I open a new terminal in Visual Studio Code?

Use the View > Terminal menu command. From the Command Palette ( Ctrl+Shift+P ), use the View: Toggle Terminal command. You can create a new terminal via the Terminal menu with Terminal > New Terminal. Note: Open an external terminal with the Ctrl+Shift+C keyboard shortcut if you prefer to work outside VS Code.

How do I open Visual Studio Code from the command line?

To open Visual Studio Code from your command line, you need to make sure that you have the VS Code command line tools installed. On Windows, this should work out of the box. On Mac, open up VS Code, go to View -> Command Palette and search for this: Just type “shell” and it should pop up automatically.

How to open the current directory in a VS Code terminal?

To automatically open the current directory in a VS code terminal: 1. Launch the VS code app, then press “Ctrl+`” to open a terminal. 2. From the menu bar, select “View” > “Command Palette.” 3. Start typing “Shell” or “Shell Command” into the search box. 4. Select “Shell Command: install “code: command in PATH.”

How to use developer command prompt in Visual Studio?

Developer Command Prompt and Developer PowerShell 1 Prerequisites 2 Start the shell from inside Visual Studio. Open Visual Studio. ... 3 Use the Windows Start menu. You may have multiple command prompts, depending on the version of Visual Studio and any additional SDKs and workloads you've installed. 4 Manually locate the file. ...


1 Answers

  1. Press Ctrl + Shift + P to open the command palette.
  2. Type 'profile' in the searcher.
  3. Select 'Terminal: Select Default Profile'.
  4. Select 'Command Prompt'
  5. The next time you try to open the terminal you should see 'CMD' instead of 'PowerShell'.
like image 154
Khapi Avatar answered Oct 16 '22 19:10

Khapi