Is there a PowerShell code formatter / pretty printer? [closed]

UPDATE: it’s now on GitHub: https://github.com/DTW-DanWard/PowerShell-Beautifier

I wrote a PowerShell pretty printer / code cleaner in PowerShell. It cleans white space, indents code groups, replaces aliases with commands, fixes casing on commands, parameters, types, etc. You can use it to reformat a file in place or read a source file and output the result in a different file.

More info:
http://danspowershellstuff.blogspot.com/2012/03/powershell-pretty-printer-code-cleaner.html

Download page:
http://www.dtwconsulting.com/PS/Module_PrettyPrinterV1.htm

Let me know what you’d like to see changed/configurable/etc.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)