6 min read
Boost your IT automation efficiency with new ScriptRunner release
We have just released our latest ScriptRunner update, version 7.1, packed with powerful new features aimed at making IT...
ScriptRunner Blog
As with any scripting or programming language, choosing an ideal editor can make or break one’s coding experience. Functionality, usability, and aesthetics—in accordance with personal preference—are critical. Productivity and adherence to best practices depend on balanced tooling. Users often require the following:
We often view development with a modern lens. However, PowerShell is no spring chicken—having debuted in 2006. Numerous developers have since contributed to the ecosystem. Many editors and IDEs have emerged to tackle problems or rethink longstanding processes. We’ll evaluate some popular options, and why PowerShell professionals might gravitate to them instead of the basic Command Line.
Because Visual Studio is more of a comprehensive IDE geared toward applications, many developers have embraced Visual Studio Code (VSC) as a friendlier replacement. Accordingly, VSC topped the list of popular development environments in Stack Overflow’s 2019 Developer Survey—over 50.7% of respondents use it. The application should be familiar to many, and is otherwise a stellar starting point for newer PowerShell professionals.
VSC is highly customizable. Apart from its rich marketplace for visual tweaks, the editor offers a number of functional extensions. One key extension is PowerShell Language Support—distributed via the Visual Studio Marketplace. It allows developers to activate an integrated ISE Mode. This is done easily through the command palette, by typing “ISE Mode.” In the popup list, choose “PowerShell: Enable ISE Mode.”
The extension is compatible with all Linux PowerShell Core distributions, macOS or OS X with PowerShell Core, and Windows 7+. These Windows variants must run PowerShell Core and PowerShell 3 or newer. Users may also leverage the Command Line and Terminal to install these extension packages. VSC and its add-ons are both free and open source.
VSC is a worthy PowerShell editor. It’s easy to replicate color schemes, console execution behavior, tab completion, and file assumptions. The app now includes a command explorer. Learning how to harness hotkeys is turbulence-free within VSC, and PowerShell commands are plentiful. Debugging is also available. VSC leverages its own IntelliSense hinting-and-completion tool for cmdlets and related code.
Users will feel at home with its interface, with minimal effort. While some applications force users to adapt, VSC is good at ‘getting out of its own way’ for the developer’s sake. That simple, distraction-free approach is great for productivity.
PowerShell Studio by Sapien is an actively-supported IDE for PowerShell only. While quite expensive at $399, Studio sells itself as a universal solution for all PowerShell needs. This holds true whether one runs 32-bit or 64-bit PowerShell. PowerShell Studio also supports STA and MTA modes—important considerations for legacy objects, and GUI tools or scripts. The software itself features a GUI Designer for low-code creation.
Note that PowerShell Studio only supports Windows. Linux and macOS (and OS X versions) aren’t compatible. Sapien also offers PrimalScript. This program is a full-fledged, multi-language IDE—and while it supports PowerShell, its functionality is more limited.
The suite features a capable editor, which also features code completion and auto-formatting. It also includes essentials like syntax coloring, bookmarking, and reference highlighting. Those working with remote modules will love Studio’s editor—as scripting with associated cmdlets is possible. A major contributor to all of this is the Function Builder. Complex parameter-and-cmdlet attributes are easy to write; the Function Builder automatically inserts proper syntax as needed.
Studio also includes the usual suspects, like script debugging, module creation, and integrated PowerShell consoles. The application sets itself apart by including supplemental debugging methods:
Users can also perform other powerful functions within PowerShell Studio: executable and installer creation. Developers can customize their privileges and elevations. MSI installers are also fair game. This level of functionality isn’t universal across the PowerShell tooling landscape. Speaking of which, Studio provides real-time script performance monitoring. Those curious about CPU and memory usage are armed with knowledge.
Finally, the suite provides some useful goodies like Universal Version Control and file recovery. These features make it easier to revert to prior versions, while safeguarding all progress made.
While Notepad++ isn’t a default Windows application like its cousin, Notepad, the application features expanded functionality that’ll satisfy admins. Thankfully, it’s still easy—and free—to download Notepad++ via the Microsoft Store or directly. The application only supports Windows. However, both 32-bit and 64-bit binaries are provided.
Notepad++ offers essentials like syntax highlighting for PowerShell, and does so within a clean editing environment. Auto-indenting for PowerShell is available. Furthermore, a host of development functions are included by default—without the addition of extensions.
Despite this, Notepad++ is primarily built to be two things: lightweight and user-friendly. The editor consumes few system resources while allowing one’s PC to “throttle down and reduce power consumption.” It’s built to execute quickly while taking up less disk space. The features in Notepad++ are generally simple to use—lessening the learning curve, even when coming from another product.
Notepad++ is exceptional for core PowerShell scripting tasks. It’s also more welcoming to new developers than other alternatives.
So, you’ve got PowerShell editing down, but what if you need a complete PowerShell-management solution? ScriptRunner is a leading solution for centralizing, automating, and monitoring performance. PowerShell priorities don’t stop there, however. The right solution must be secure and usable. For IT pros and DevOps pros alike, ScriptRunner remains a premier solution for PowerShell’s most-dedicated users.
Sep 30, 2024 by Frank Kresse
We have just released our latest ScriptRunner update, version 7.1, packed with powerful new features aimed at making IT...
Aug 16, 2024 by Heiko Brenn
Welcome to Scriptember! We are thrilled to announce the launch of a unique, month-long campaign dedicated to...
Aug 14, 2024 by Jeffery Hicks
I'd like to think that because you are reading this, you are a professional PowerShell user and this article will be a...
Adam is a 20+ year veteran of IT and experienced online business professional. He’s an entrepreneur, IT influencer, Microsoft MVP, blogger, trainer, author and content marketing writer for multiple technology companies.