# Format Document

Code formatting can be accomplished by using the standard `Ctrl+K`, `Ctrl+D` keyboard shortcut within Visual Studio.&#x20;

The PSScriptAnalyzer module is required to perform formatting. From Windows PowerShell, you can install PSScriptAnalyzer with `Install-Module`.&#x20;

```powershell
Install-Module 'PSScriptAnalyzer' -Scope CurrentUser
```
