Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I open the terminal in Visual Studio?

People also ask

How do I open my terminal?

Open Command Prompt in WindowsClick Start and search for "Command Prompt." Alternatively, you can also access the command prompt by pressing Ctrl + r on your keyboard, type "cmd" and then click OK.

How do I get terminal in Visual Studio 2019?

Enabling the new Visual Studio terminalGo to Tools > Options > Preview Features, enable the Experimental VS Terminal option and restart Visual Studio. Once enabled, you can invoke it via the View > Terminal Window menu entry or via the search.


Visual Studio 2022/2019

Now Visual Studio has a built-in terminal:

Terminal SS

Menu ViewTerminal (Ctrl + ")

To change the default terminal

Menu ToolsOptionsTerminalSet As Default

Enter image description here


Before Visual Studio 2019

From comments, the best answer is from Hans Passant.

  1. Add an external tool.

    Menu ToolsExternal ToolsAdd

    Title: Terminal (or name it yourself)

    Command = cmd.exe or Command = powershell.exe

    Arguments = /k

    Initial Directory = $(ProjectDir)

  2. Menu ToolsTerminal (or whatever you put in title)

  3. Enjoy!


You can have an integrated terminal inside Visual Studio using one of these extensions:

Whack Whack Terminal

Terminal: CMD or PowerShell

Shortcut: Ctrl + </kbd>, Ctrl + </kbd>

Supports: Visual Studio 2017

Whack Whack Terminal


BuiltinCmd

Terminal: CMD or PowerShell

Shortcut: CtrlShiftT

Supports: Visual Studio 2013, 2015, 2017, and 2019

BuiltinCmd


As a tricky solution, you can use Package Manager Console to execute CMD or PowerShell commands.

Shortcut for Package Manager Console: Alt + T, + N, O

Tested on Visual Studio 2017 Community version.

Enter image description here

Also it's available now as part of Visual Studio version 16.3 Preview 3

The shortcut is Ctrl + `, the same as Visual Studio Code.


New in the most recent version of Visual Studio, there is menu ViewTerminal, which will open a PowerShell instance as a Visual Studio dockable window, rather than a floating PowerShell or CMD instance from the Developer Command Prompt.

Menu "View" and then "Terminal"


Microsoft just included an integrated Windows Terminal in Visual Studio version 16.3 Preview 3. Go to menu ToolsOptionsPreview Features, enable the Experimental VS Terminal option and restart Visual Studio.

Say hello to the new Visual Studio terminal!