Using the command line from within Visual Studio Using the command line from within Visual Studio powershell powershell

Using the command line from within Visual Studio


In Visual Studio 11, the NuGet Package Manager Console is a fully featured PowerShell console. You can do all kinds of things there, including file system operations, git/hg/svn/tfs commands, etc.

You also can customize the experience with a special PowerShell profile called NuGet_profile.ps1.

Installing the NuGet VSIX from the Visual Studio gallery will get you a similar experience in VS2010 if I'm not mistaken.


For anyone that comes across this in 2018+, there is now also the Whack Whack Terminal extension from Microsoft's Daniel Griffen (@dgriffen on GitHub), which gives you exactly what you were looking for.

Whack Whack Terminal is a terminal emulator for Visual Studio 2017. Unlike other terminals for VS, Whack Whack Terminal is fully interactive. Users can launch interactive git commits, vim, or almost any other command line utility.

The default terminal is powershell and it can be opened with the shortcut chord "Ctrl+\, Ctrl+\".

CMD and WSLBash are also available terminal choices.

It's also open source! You can find the source code at Microsoft/WhackWhackTerminal on GitHub.


There is a command window in Visual Studio (CTRL + ALT + A) or (View -> OtherWindows -> Command Window)

You can then use the shell command to run external executables

The syntax is:

shell [/command] [/output] [/dir:folder] path [args]