Provides PowerShell language and debugging support for Visual Studio Code
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github [Ignore] Update PSSA bug report template for flexibility (#1588) Oct 23, 2018
.vscode [Ignore] use pwsh available on path to support building from snap pwsh ( Dec 12, 2018
build Update Travis to PowerShell Core 6.0.2 (#1373) Jun 19, 2018
docs [Ignore] Add repro requirements to docs (#1630) Dec 12, 2018
examples Updates to Examples PSSA settings file to include more rule config (#… May 7, 2018
images Update PowerShell icon Nov 10, 2015
media Rename PwSh.svg to pwsh.svg (#1625) Dec 3, 2018
modules Consume Editor Services host as PowerShell module Jun 12, 2016
resources Show-Command explorer v1 (#1406) Nov 28, 2018
scripts Update release notes of Install-VSCode.ps1 Nov 12, 2018
snippets Fix markdown syntax (#1382) Jun 27, 2018
src [Ignore] Increment version for preview (#1650) Dec 12, 2018
test Remove syntax-based client-side folder provider (#1610) Nov 28, 2018
themes/theme-psise Update PSISE Theme Jun 12, 2017
tools [Ignore] Increment version for preview (#1650) Dec 12, 2018
.gitattributes Show-Command explorer v1 (#1406) Nov 28, 2018
.gitignore ignore mac finder files Oct 16, 2017
.travis.yml Add 2.0.0 to AppVeyor builds (#1530) Sep 20, 2018
.vscodeignore Add extension unit testing infrastructure Sep 6, 2017 [Ignore] Changelog for 1.10.2 (#1663) Dec 19, 2018 Actually add Jan 3, 2018
LICENSE.txt Update LICENSE.txt Feb 8, 2016 [Ignore] Update and associated docs (#1541) Sep 25, 2018
Third Party Notices.txt Update Third Party Notices.txt Feb 8, 2016
appveyor.yml [Ignore] Increment version for preview (#1650) Dec 12, 2018
build.ps1 [Ignore] Make build.ps1 work when no params given (#1566) Oct 9, 2018
package-lock.json Changelog for 1.10.1 (#1643) Dec 8, 2018
package.json [Ignore] Increment version for preview (#1650) Dec 12, 2018
tsconfig.json Update TypeScript to 2.0.3 Nov 18, 2016
tslint.json Add tslint rule file-header to enforce copyright in TS files (#1396) Jul 2, 2018 [Ignore] Stop building the v2 branch in master (#1568) Oct 9, 2018

PowerShell Language Support for Visual Studio Code

Version Installs windows build linux/macos build Join the chat at

This extension provides rich PowerShell language support for Visual Studio Code. Now you can write and debug PowerShell scripts using the excellent IDE-like interface that Visual Studio Code provides.

Platform support

  • Windows 7 through 10 with Windows PowerShell v3 and higher, and PowerShell Core
  • Linux with PowerShell Core (all PowerShell-supported distributions)
  • macOS and OS X with PowerShell Core

Read the installation instructions to get more details on how to use the extension on these platforms.

Read the FAQ for answers to common questions.


  • Syntax highlighting
  • Code snippets
  • IntelliSense for cmdlets and more
  • Rule-based analysis provided by PowerShell Script Analyzer
  • Go to Definition of cmdlets and variables
  • Find References of cmdlets and variables
  • Document and workspace symbol discovery
  • Run selected selection of PowerShell code using F8
  • Launch online help for the symbol under the cursor using Ctrl+F1
  • Local script debugging and basic interactive console support!

Installing the Extension

You can install the official release of the PowerShell extension by following the steps in the Visual Studio Code documentation. In the Extensions pane, search for "PowerShell" extension and install it there. You will get notified automatically about any future extension updates!

You can also install a VSIX package from our Releases page by following the Install from a VSIX instructions. The easiest way is through the command line:

code --install-extension PowerShell-<version>.vsix

NOTE: If you are using VS Code Insiders, the command will be code-insiders.

Script-based Installation

If you're on Windows 7 or greater with the PowerShellGet module installed, you can easily install both Visual Studio Code and the PowerShell extension by running the following command:

Install-Script Install-VSCode -Scope CurrentUser; Install-VSCode.ps1

You will need to accept the prompts that appear if this is your first time running the Install-Script command.

Alternatively you can download and execute the script directly from the web without the use of Install-Script. However we highly recommend that you read the script first before running it in this way!

iex (iwr

Reporting Problems

If you experience any problems with the PowerShell Extension, see the troubleshooting docs for information on diagnosing and reporting issues.

Security Note

For any security issues, please see here.

Example Scripts

There are some example scripts in the extension's examples folder that you can use to discover PowerShell editing and debugging functionality. Please check out the included file to learn more about how to use them.

This folder can be found at the following path:


To open/view the extension's examples in Visual Studio Code, run the following from your PowerShell command prompt:

code (Get-ChildItem $Home\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1]

Contributing to the Code

Check out the development documentation for more details on how to contribute to this extension!



This extension is licensed under the MIT License. Please see the third-party notices file for details on the third-party binaries that we include with releases of this project.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.