Skip to content
Provides PowerShell language and debugging support for Visual Studio Code
TypeScript PowerShell
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot [Ignore] disable dependabot for legacy (#2416) Jan 13, 2020
.github Add CodeQL security scanning (#2740) Jun 4, 2020
.poshchan [Ignore] Add "bergmeister" to poshchan list of people with rebuild ri… Jan 29, 2020
.vscode Close other pwsh's in the VSCode instance (#2469) Feb 18, 2020
.vsts-ci Use PowerShell Daily in CI (#2617) Apr 8, 2020
build Azure pipelines (#1871) Apr 13, 2019
docs misc known issues (#2757) Jun 11, 2020
examples Fix incorrect cmdlet reference (#2470) Feb 13, 2020
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 Add buttons for moving the terminal around. (#2704) May 19, 2020
scripts [Ignore] update other link in Install-VSCode script Apr 20, 2020
snippets Add param-block snippet (#2081) Jul 12, 2019
src Support adding an OutputFile and allow running from command pallet (#… Jun 1, 2020
test Skip UpdatePowerShell tests in CI on macOS (#2479) Feb 19, 2020
themes/theme-psise Add coloring for $ and wordSepartors (#2702) May 19, 2020
tools Cleanup unused variables (#2686) May 11, 2020
.gitattributes Show-Command explorer v1 (#1406) Nov 28, 2018
.gitignore Azure pipelines (#1871) Apr 13, 2019
.vscodeignore [Ignore] Add new additions to .vscodeignore (#2502) Feb 28, 2020
CHANGELOG.md update cl for stable (#2758) Jun 11, 2020
CODE_OF_CONDUCT.md Actually add CODE_OF_CONDUCT.md Jan 3, 2018
InvokePesterStub.ps1 Support adding an OutputFile and allow running from command pallet (#… Jun 1, 2020
LICENSE.txt Update LICENSE.txt Feb 8, 2016
README.md [Ignore] mention PSES in README (#1996) Jun 2, 2019
Third Party Notices.txt Update Third Party Notices.txt Feb 8, 2016
build.ps1 Fix node version detect logic to handle node v10 (#2025) Jun 25, 2019
extension-dev.code-workspace [Ignore] use forward slash for code-workspace May 1, 2020
package-lock.json rev version to 2020.6.1 update CL (#2747) Jun 8, 2020
package.json rev version to 2020.6.1 update CL (#2747) Jun 8, 2020
tsconfig.json add rich nav (#1959) May 13, 2019
tslint.json Add tslint rule file-header to enforce copyright in TS files (#1396) Jul 2, 2018
vscode-powershell.build.ps1 [Ignore] Update vsce to use auto link opt out (#2500) Feb 28, 2020

README.md

PowerShell Language Support for Visual Studio Code

Build Status Codacy Badge Dependabot Status Version Installs Discord Join the chat at https://gitter.im/PowerShell/vscode-powershell

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.

This extension is powered by the PowerShell language server, PowerShell Editor Services. This leverages the Language Server Protocol where PowerShellEditorServices is the server and vscode-powershell is the client.

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.

Features

  • 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 https://raw.githubusercontent.com/PowerShell/vscode-powershell/master/scripts/Install-VSCode.ps1)

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 README.md file to learn more about how to use them.

This folder can be found at the following path:

$HOME/.vscode[-insiders]/extensions/ms-vscode.PowerShell-<version>/examples

or if you're using the preview version of the extension

$HOME/.vscode[-insiders]/extensions/ms-vscode.powershell-preview-<version>/examples

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!

Maintainers

License

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 opencode@microsoft.com with any additional questions or comments.

You can’t perform that action at this time.