{"id":9161,"date":"2015-04-27T07:00:23","date_gmt":"2015-04-27T14:00:23","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=9161"},"modified":"2015-04-24T15:58:49","modified_gmt":"2015-04-24T22:58:49","slug":"powershell-studio-2015-new-parameter-block-formatting","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2015\/04\/27\/powershell-studio-2015-new-parameter-block-formatting\/","title":{"rendered":"PowerShell Studio 2015 &ndash; New Parameter Block Formatting"},"content":{"rendered":"<p>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.<\/p>\n<p>This first feature added was in response to user feedback.<\/p>\n<p><strong>Parameter Block Formatting<\/strong><\/p>\n<p>Three new options were added to PowerShell Studio 2015 that allow you to control different aspects of parameter block formatting:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image21.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image_thumb20.png\" alt=\"image\" width=\"244\" height=\"186\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>Insert new line after parameter attribute<\/strong><\/em><\/p>\n<p>This option places each parameter attribute in its own line.<\/p>\n<p>Before:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image22.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image_thumb21.png\" alt=\"image\" width=\"592\" height=\"176\" border=\"0\" \/><\/a><\/p>\n<p>After:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image23.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image_thumb22.png\" alt=\"image\" width=\"593\" height=\"178\" border=\"0\" \/><\/a><\/p>\n<p><strong><em>Insert new line after parameter type<\/em><\/strong><\/p>\n<p>This option inserts a line after the type of the parameter.<\/p>\n<p>Before:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image24.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image_thumb23.png\" alt=\"image\" width=\"592\" height=\"87\" border=\"0\" \/><\/a><\/p>\n<p>After:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image25.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image_thumb24.png\" alt=\"image\" width=\"498\" height=\"89\" border=\"0\" \/><\/a><\/p>\n<p><em><strong>Parameter line spacing<\/strong><\/em><\/p>\n<p>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.<\/p>\n<p>Before:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/SNAGHTML177be18.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"SNAGHTML177be18\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/SNAGHTML177be18_thumb.png\" alt=\"SNAGHTML177be18\" width=\"584\" height=\"298\" border=\"0\" \/><\/a><\/p>\n<p>After (Spacing = 2):<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image26.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/04\/image_thumb25.png\" alt=\"image\" width=\"584\" height=\"298\" border=\"0\" \/><\/a><\/p>\n<p>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 <a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=9\">Wish List and Feature Request<\/a> forum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[703,632,25],"tags":[85,28,951,141],"class_list":["post-9161","post","type-post","status-publish","format-standard","hentry","category-powershell-studio","category-whats-new-software-news","category-windows-powershell","tag-formatting","tag-powershell","tag-powershell-studio-2015","tag-whats-new"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=9161"}],"version-history":[{"count":5,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9161\/revisions"}],"predecessor-version":[{"id":9180,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9161\/revisions\/9180"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=9161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=9161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=9161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}