News

PowerShell Preview Extension Available for Visual Studio Code

Microsoft's PowerShell team has published a preview extension in the Visual Studio Code Marketplace for command-line scripting within your favorite open source, cross-platform code editor.

The PowerShell Preview extension in the marketplace is not to be confused with the company's existing, stable PowerShell extension, for which the preview is a substitute offering (they shouldn't be enabled at the same time).

The preview, published with features that are being evaluated for inclusion in stable builds, works with PowerShell 5.1 and later. Running a preview channel of the tool along with a stable channel reportedly helps the team get features out sooner.

According to its marketplace description, the PowerShell Preview tool provides features such as:

  • 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!

"The PowerShell Preview extension is built on .NET Standard thereby enabling simplification of our code and dependency structure," said Sydney Smith, a program manager on the PowerShell dev team, in a blog post last week (Jan. 23).

Smith also called out community contributor "@SeeminglyScience" for help with getting PSReadLine to work, providing customization of the command-line editing environment in PowerShell.

"The PowerShell Preview extension also contains PSReadLine support in the integrated console for Windows behind a feature flag," Smith said. "PSReadLine provides a consistent and rich interactive experience, including syntax coloring and multi-line editing and history, in the PowerShell console, in Cloud Shell, and now in VSCode terminal. For more information on the benefits of PSReadLine, check out their documentation."

The stable channel PowerShell extension has been downloaded more than 5.7 million times, earning an average 4.4 rating (scale to 5) from 92 users who reviewed it. The preview has been downloaded 995 times as of this writing

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube