Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Visual Studio Code work with PowerShell in the Command Palette?

With Visual Studio Code (not the traditional Visual Studio IDEs), can you run PowerShell in the Command Palette? I ask because I commonly use it in the full IDE.

I have not seen PowerShell mentioned in the documentation, other than for basic syntax highlighting. I have tried it with no success. Is it unsupported, or is it an optional feature I can configure somehow?

Note: to those voting up the PowerGUI answer, it is not correct as it references the wrong edition of Visual Studio for this question. It is helpful if you are using the full IDE, but not the new editor named: Code.

like image 617
Dan Sorensen Avatar asked May 02 '15 14:05

Dan Sorensen


1 Answers

An "Integrated Terminal" is now integrated into Visual Studio Code. This is a PowerShell Terminal in Windows. (Likely BASH in Linux / MacOS). The terminal appears in a panel at the bottom of the code editor, not in the Command Pallete.

Keyboard Shortcut to open Terminal: CTRL + `

Sources:

  • https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
  • https://code.visualstudio.com/docs/getstarted/keybindings

I confirmed in version 1.19.2. Not sure when the feature was first integrated.

like image 126
Dan Sorensen Avatar answered Oct 08 '22 13:10

Dan Sorensen