PowerShell Pro Tools
Forums
Purchasing
Discord
Search…
About
System Requirements
PowerShell Tools Documentation
Visual Studio
Analysis
Debugging
Code Conversion
Format Document
Go to Definition
Packaging in Visual Studio
PowerShell 7 Support
PowerShell Interactive Window
Project System
Settings
Tool Windows
Refactoring
Unit Test Adapter
User Interface Design
PowerShell Pro Tools Documentation
Visual Studio Code
Installers
Packaging
PowerShell Module
PowerShell Protect
PSCommander
PSScriptPad
Installation and Licensing
Changelog
PowerShell Tools for Visual Studio
PowerShell Pro Tools for Visual Studio Code
PowerShell Protect
PSCommander
PSScriptPad
PowerShell Pro Tools Module
Powered By
GitBook
Format Document
Code formatting for PowerShell.
Available in PowerShell Tools for Visual Studio 2022.2.0 or later. Requires a
PowerShell Pro Tools license
.
Code formatting can be accomplished by using the standard
Ctrl+K
,
Ctrl+D
keyboard shortcut within Visual Studio.
The PSScriptAnalyzer module is required to perform formatting. From Windows PowerShell, you can install PSScriptAnalyzer with
Install-Module
.
1
Install-Module
'PSScriptAnalyzer'
-
Scope CurrentUser
Copied!
Previous
Code Conversion
Next
Go to Definition
Last modified
3mo ago
Copy link