Editor
PowerShell Universal editor.
Last updated
PowerShell Universal editor.
Last updated
Copyright 2024 Ironman Software
The editor controls within the PowerShell Universal admin console provide a rich editing experience for PowerShell users. You will be able to take advantage of IntelliSense, formatting and parser error support.
All editors within PowerShell Universal will provide IntelliSense. You should be able to complete commands, parameters, built-in variables, and paths.
There are a couple of caveats with IntelliSense.
IntelliSense runs within the PowerShell Universal server
It does not rely on a configured environment to function. It runs within the PowerShell server process so will be using the current version of PowerShell 7 referenced by the server.
Universal Modules are Available
Modules provided with PowerShell Universal are automatically included. You will see IntelliSense for the following modules.
Universal
Modules included in PSModulePath are Available
Any module installed into a PSModulePath will be available in IntelliSense.
Live Variables are Not Supported
You will have access to built-in variables such as ConfirmPreference
and Host
but will not see variables specific to PowerShell Universal.
You can use the Invoke-Formatter
command of PSScriptAnalyzer
within your scripts. You will need to install PSScriptAnalyzer
to your PSModulePath in order to use this functionality. You can format by right clicking within the editor and selecting Format or by pressing F8.
Syntax errors will be shown as red squiggles within the editor. Hovering over them will provide information about why the syntax error is present.
The PowerShell Universal editor automatically integrates with PSScriptAnalyzer when it is installed on the PSU server. PSScriptAnalyzer will run against PowerShell scripts while you author them in the admin console. Warnings will be presented inline as well as an alert at the top of the editor.
Click the alert to be navigated to the first error or warning.