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

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

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

Subscribe on YouTube