This is a brief post containing my information about my PowerShell coding setup, IDE, extensions, etc.
I’m writing this mainly because, based on the reactions to my reddit comment, some people might not be aware of how helpful the VS Code + PS extension combo can be for PowerShell code writing.
This is the environment that I use to write PowerShell scripts such as PSBlitz, Decode-AsusRouterConfig, and my SQL Server install script.
IDE
I use Visual Studio Code and the PowerShell extension for VS Code.

Extension configuration
For the PowerShell extension for VS Code I keep most of the defaults with the following exceptions:
| Option | State |
|---|---|
| PowerShell: Prompt To Update PowerShell | Unchecked |
| PowerShell > Code Formatting: Auto Correct Aliases | Checked |
| PowerShell > Code Formatting: New Line After Close Brace | Unchecked (because I’m e One True Brace fan) |
| PowerShell > Code Formatting: Use Correct Casing | Checked |
| PowerShell > Code Formatting: Whitespace Between Parameters | Checked |
Code auto-formatting
I do not have “format on save” enabled, because I like checking if everything is formatted ok before I save.
Instead, what I do is use Alt+Shift+F to format, and save only if I’m ok with the changes.
PowerShell(s)
I have both Windows PowerShell (5.1.26100.4652) and PowerShell 7 (Core 7.5.2) installed.
And, generally, I try to write stuff that’s supported by both versions.
The best example being PSBlitz, where I consider compatibility with Windows PowerShell 5.1 as being mandatory.
I run all my PowerShell and Command Prompt stuff from Windows Terminal.
But what about PowerShell ISE?
No, just no. Never.
Bonus: Windows Terminal theme
If you’ve seen screenshots of my Terminal window in my other posts, and are interested in what theme I’m using.
I use a modified version of Chrissy LeMaire‘s retrowave theme.
Here’s the JSON for my version of the theme:
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | { "background": "#070825", "black": "#181A1F", "blue": "#46BDFF", "brightBlack": "#FF16B0", "brightBlue": "#0300FF", "brightCyan": "#FF901F", "brightGreen": "#0AFF14", "brightPurple": "#FF92DF", "brightRed": "#F85353", "brightWhite": "#FFFFFF", "brightYellow": "#FFFFFF", "cursorColor": "#FFFFFF", "cyan": "#DF81FC", "foreground": "#46BDFF", "green": "#929292", "name": "Retrowave", "purple": "#FF92DF", "red": "#FF16B0", "selectionBackground": "#FFFFFF", "white": "#FFFFFF", "yellow": "#FCEE54" } |
Conclusion
That’s it, that’s the post. Have fun writing PowerShell code that’s nicely formatted.