If you ever want to start an argument with programmers or scripters, mention your preferred code or script formatting habit. A tweet about the PowerShell backtick continuation character or the placement of comment-based help for a function will elicit enough reaction to bring down a small server. But nothing gets people more riled up than […]
Tag: formatting
PowerShell Studio 2015 – New Parameter Block Formatting
With release of the v4.2.83 build of PowerShell Studio 2015, we introduced new features which we will cover in detail over a series of articles. This first feature added was in response to user feedback. Parameter Block Formatting Three new options were added to PowerShell Studio 2015 that allow you to control different aspects of […]
PrimalForms 2009: Exported Script Formatting
In order to start the planning stages of the next version of PrimalForms, we decided to conduct a review the current version. After gathering user feedback on the subject, we concluded that the script formatting needed a makeover to make it easier for the users to read the final script. In order to address user […]
Formatting in scripts
Develop a standard for formatting your scripts, and use indentation. Function MyFunction { # function code here } …or… Function MyFunction { # function code here }
How can I write a PowerShell function that outputs a table?
This is a REALLY common question, and if you have any experience with VBScript, or Perl, or some similar scripting language, you’ll go down completely the wrong path. The thing to remember is that PowerShell already knows how to format tables! You just have to give it your data in a way it understands, so […]