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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube