Show-PSEditor
displays a terminal-based PowerShell editor that contains the following features. Show-PSEditor
in a terminal. -Path
parameter. PSScriptAnalyzer
installed. To format a script, either press Ctrl+Shift+R
or click Edit \ Format. If you don't have PSScriptAnalyzer
installed, you can do so with the command below. F5
to run the entire script. If you want to execute a select, you can press F8
. You can also execute the script in the terminal and exit the editor by pressing Ctrl+Shift+F5
.