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 parameter block formatting:

image

 

Insert new line after parameter attribute

This option places each parameter attribute in its own line.

Before:

image

After:

image

Insert new line after parameter type

This option inserts a line after the type of the parameter.

Before:

image

After:

image

Parameter line spacing

This option governs the line spacing between parameters. If set to a value greater than zero, PowerShell Studio will place the specified number of new lines after the parameter. To disable this option (leave the spacing as is) set the value to zero.

Before:

SNAGHTML177be18

After (Spacing = 2):

image

These new formatting options will help maintain your parameter blocks the way you want them. If you would like to see more formatting options, please let us know by posting on our Wish List and Feature Request forum.