- Notifications
You must be signed in to change notification settings - Fork511
Provides PowerShell language and debugging support for Visual Studio Code
License
PowerShell/vscode-powershell
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This extension provides richPowerShell language support forVisual Studio Code (VS Code).Now you can write and debug PowerShell scripts using the excellent IDE-like interfacethat VS Code provides.
This repository,vscode-powershell
, is theLanguage Server Protocol client for VSCode andPowerShellEditorServices
is the server (also used by other editors, such asEmacs and Vim).
- Syntax highlighting
- Advanced built-incode snippets
- IntelliSense for cmdlets and more
- Problems reported byPowerShell Script Analyzer
- Go to Definition of cmdlets, variables, classes and more
- Find References of cmdlets, variables, classes and more
- Document and WorkspaceSymbol Navigation
- Symbol-basedOutline View
- Run selected PowerShell code in current terminal usingF8
- Launch online help for the symbol under the cursor usingCtrl+F1
- PowerShellDebugger integration
- An Extension Terminal that can interact with the debugger (try
Set-PSBreakpoint
!) - PowerShell ISE theme findable in thetheme picker
- Also try ISE Mode with theToggle ISE Mode command
Bundled with the extension is the PowerShell ISE theme. It is not activated by default,but after installing this extension either clickSet Color Theme or use thethemepicker and selectPowerShell ISE.
The extension should work everywhereVisual Studio Code is supported usingPowerShell 7+ currently supported versions.
Important
For Windows PowerShell, only version 5.1 is supported and only on a best-effort basis..NET Framework 4.8 or higher is required.
Important
Visual Studio Code for the Web is only supported for limited functionality such as basic syntax highlighting, as the PowerShell engine cannot run in this environment currently.
VS Code Remote Development Environments, includingGithub Codespaces andVS Code Server are supported.
We actively test the following configurationsin Github Actions on every commit:
- Windows Server 2022 with Windows PowerShell 5.1 and PowerShell 7+
- macOS 14.7 with PowerShell 7+
- Ubuntu 24.04 with PowerShell 7+
On Windows, we also test with and without Constrained Language Mode enabled.
Read theinstallation instructionsto get more details on how to use the extension on these platforms.
The PowerShell extension can be installed from the Visual Studio Code Marketplace byclicking theInstall Button. You can also install the PowerShell extension fromwithin VS Code by opening theExtensions view with keyboard shortcutCtrl+Shift+X, typing PowerShell, and selecting the extension.
We would encourage you to try thepre-release version whenever possible. When aPre-Release is available, it can be installed from the marketplace using theSwitch to Pre-Release Version button. You can switch back to the stable version of theextension by using theSwitch to Release Version button that will appear. You can alsodowngrade to other versions of the extension using the arrow next to theUninstallbutton and choosingInstall Another Version.
Please oursupport document.
Please see ourCode of Conduct before participating in this project.
Check out thedevelopment documentation for more detailson how to contribute to this extension!
For any security issues, please seehere.
- Andy Jordan -@andyleejordan
- Patrick Meinecke -@SeeminglyScience
- Sydney Smith -@SydneyhSmith
- Justin Grote -@JustinGrote
- Keith Hill -@rkeithhill
- Rob Holt -@rjmholt
- Tyler Leonhardt -@TylerLeonhardt
- David Wilson -@daviwil
This extension islicensed under the MIT License. Please see thethird-party notices file for details on the third-partybinaries that we include with releases of this project.
About
Provides PowerShell language and debugging support for Visual Studio Code