Not only only important in Windows PowerShell: “Whitespace, Please” (via: TechNet Magazine)
Posted by jpluimers on 2014/03/06
In this series of PowerShell postings, the below quote by Don Jones from Concentrated Technology is a must:
Proper formatting, including a little whitespace here and there, can make your Windows PowerShell commands a heck of a lot easier to understand.
But please don’t limit this to PowerShell code.
I see too many code at clients, even at conferences and magazine articles that are badly formatted.
Even more important: when you ask or provide for help on a forum or community site: please properly format your code examples. That makes it much easier for your audience (often yourself) to grasp the meaning.
For PowerShell: note that most syntactic elements provide for a very natural line continuation (so you can write really readable code), except for CmdLets, so often you will see { at the end of a line to make the most readable code.
–jeroen
via: Windows PowerShell: Whitespace, Please | TechNet Magazine.






Leave a comment