{"id":4051,"date":"2012-05-01T08:07:00","date_gmt":"2012-05-01T16:07:00","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=4051"},"modified":"2012-05-03T08:17:01","modified_gmt":"2012-05-03T16:17:01","slug":"powershell-studio-2012-whats-new-part-4","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2012\/05\/01\/powershell-studio-2012-whats-new-part-4\/","title":{"rendered":"PowerShell Studio 2012: What&rsquo;s New? (Part 4)"},"content":{"rendered":"<p>Last time we looked at the new Control Sets. Now we will take a look at the new Script Editor features:<\/p>\n<p><strong><\/strong><\/p>\n<p><strong>Improved Syntax Coloring<\/strong><\/p>\n<p>PowerShell Studio 2012 now colors cmdlet and functions parameters:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Parameter Coloring\" border=\"0\" alt=\"Parameter Coloring\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Parameter-Coloring.png\" width=\"644\" height=\"92\"><\/p>\n<p><strong><\/strong><\/p>\n<p><strong>Convert Cmdlet &amp; Aliases<\/strong><\/p>\n<p>Using the Context Menu or the Keyboard Shortcut you can convert your Cmdlets and Aliases. You can also convert from parameter aliases as well.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Convert-to-Alias.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Convert to Alias\" border=\"0\" alt=\"Convert to Alias\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Convert-to-Alias_thumb.png\" width=\"244\" height=\"112\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-size: small\">Improved PrimalSense<\/span><\/strong><\/p>\n<p>PowerShell Studio\u2019s PrimalSense has also been greatly improved to increase your scripting productivity.<\/p>\n<p><strong>Improved Parameter PrimalSense Support:<\/strong><\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Parameter-PrimalSense.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Parameter PrimalSense\" border=\"0\" alt=\"Parameter PrimalSense\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Parameter-PrimalSense_thumb.png\" width=\"626\" height=\"198\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Improvements include PrimalSense completion for Enumerators and Special Types:<\/p>\n<p><strong>Enumerator Code Completion:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Enumerator Code Completion\" border=\"0\" alt=\"Enumerator Code Completion\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Enumerator-Code-Completion.png\" width=\"672\" height=\"218\"><\/p>\n<p>&nbsp;<\/p>\n<p><strong>PrimalSense for Special Types:<\/strong><\/p>\n<p>PowerShell Studio will now display PrimalSense for special types such as Cursors and Colors:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"PrimalSense for Colors\" border=\"0\" alt=\"PrimalSense for Colors\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/PrimalSense-for-Colors.png\" width=\"628\" height=\"197\"><\/p>\n<p>&nbsp;<\/p>\n<p>The improved PrimalSense will also display form control references:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Select Form Controls\" border=\"0\" alt=\"Select Form Controls\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Select-Form-Controls.png\" width=\"618\" height=\"147\"><\/p>\n<p>Added Code Completion for Cmdlet and Function Parameters as well:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Parameter Enum\" border=\"0\" alt=\"Parameter Enum\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Parameter-Enum.png\" width=\"648\" height=\"187\"><\/p>\n<p><strong><\/strong><\/p>\n<p><strong>Parameter PrimalSense for Project Files:<\/strong><\/p>\n<p>When you define a parameter block in a Project File, they will now be reflected in the PrimalSense.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Parameter Block in ProjectFile\" border=\"0\" alt=\"Parameter Block in ProjectFile\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Parameter-Block-in-ProjectFile.png\" width=\"491\" height=\"135\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Project File Parameters\" border=\"0\" alt=\"Project File Parameters\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Project-File-Parameters.png\" width=\"450\" height=\"127\"><\/p>\n<p><strong><\/strong><\/p>\n<p><strong>Code Completion for Methods:<\/strong><\/p>\n<p>A new feature that will help speed up your scripting is the new method completion.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Object-Methods.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Object Methods\" border=\"0\" alt=\"Object Methods\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Object-Methods_thumb.png\" width=\"644\" height=\"89\"><\/a><\/p>\n<p>Automatically insert the method parameters by pressing \u2018Tab\u2019:<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Insert-Method-Parameters.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Insert Method Parameters\" border=\"0\" alt=\"Insert Method Parameters\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Insert-Method-Parameters_thumb.png\" width=\"644\" height=\"161\"><\/a><\/p>\n<p>You can Tab through each parameter and the PrimalSense will appear for the special types. Though you do not need to Tab complete the method parameters to benefit from the improved PrimalSense for special type arguments.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/PrimalSense-for-Method-Parameters.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"PrimalSense for Method Parameters\" border=\"0\" alt=\"PrimalSense for Method Parameters\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/PrimalSense-for-Method-Parameters_thumb.png\" width=\"644\" height=\"155\"><\/a><\/p>\n<p><strong><\/strong><\/p>\n<p><strong>Improved Cmdlet PrimalSense:<\/strong><\/p>\n<p>PowerShell Studio improves PrimalSense support for various cmdlets such as the <span style=\"color: #0000ff\">Get-WmiObject<\/span> cmdlet:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"GetWMIObject\" border=\"0\" alt=\"GetWMIObject\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/GetWMIObject.png\" width=\"672\" height=\"130\"><\/p>\n<p>As see can you,&nbsp; PrimalSense for WMI namespaces and Classes are provided.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Script Navigation:<\/strong><\/p>\n<p>The Script Editor now has a new navigation menu which allows you to quickly navigate within your scripts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Navigation Ribbon\" border=\"0\" alt=\"Navigation Ribbon\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Navigation-Ribbon.png\" width=\"194\" height=\"99\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Next Menu\" border=\"0\" alt=\"Next Menu\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Next-Menu.png\" width=\"195\" height=\"129\"><\/p>\n<p>The Navigate menu in the Ribbon offers:<\/p>\n<blockquote>\n<p><em>Easy access to Bookmarks<br \/><\/em>Add\/Remove Bookmarks as well as navigate to and between them.<\/p>\n<p><em>Function Navigate<\/em><br \/>Go to the next and previous function\/event declaration.<\/p>\n<p><em>Change Navigation<\/em><br \/>Navigate to modifications made within your script file. Modification are denoted by a yellow and green indicators.<\/p>\n<\/blockquote>\n<blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Modification Indicators\" border=\"0\" alt=\"Modification Indicators\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Modification-Indicators.png\" width=\"390\" height=\"77\"><\/p>\n<p><em>Occurrence Navigation<\/em><br \/>Navigate between occurrences of either variables, text or even cmdlets within your scripts.<\/p>\n<p><em>Go to Last Edit Position<\/em><br \/>Press <strong>Ctrl + E<\/strong> and go to the last modification you made in the script.<\/p>\n<\/blockquote>\n<p><strong><\/strong><\/p>\n<p><strong>Function Selection:<\/strong><\/p>\n<p>Triple click on the line number column of the editor and it will automatically select the whole function.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Triple-Click-Function-Definition-Selection.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Triple Click Function Definition Selection\" border=\"0\" alt=\"Triple Click Function Definition Selection\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/Triple-Click-Function-Definition-Selection_thumb.png\" width=\"244\" height=\"59\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>CmdletBinding Support:<\/strong><\/p>\n<p>Need to use CmdletBinding with your functions? Our PrimalSense now detects if a function uses CmdletBinding and displays the additional parameters the binding grants you.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/CmdletBinding.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"CmdletBinding\" border=\"0\" alt=\"CmdletBinding\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/04\/CmdletBinding_thumb.png\" width=\"194\" height=\"244\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Next: <a href=\"http:\/\/www.sapien.com\/blog\/2012\/05\/03\/powershell-studio-2012-whats-new-part-5\/\">Part 5<\/a> &#8211; The new Function Explorer and other additions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last time we looked at the new Control Sets. Now we will take a look at the new Script Editor features: Improved Syntax Coloring PowerShell Studio 2012 now colors cmdlet and functions parameters: Convert Cmdlet &amp; Aliases Using the Context Menu or the Keyboard Shortcut you can convert your Cmdlets and Aliases. You can also [&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":[705,509,21,25],"tags":[694,28,1016,314,128],"class_list":["post-4051","post","type-post","status-publish","format-standard","hentry","category-powershell-studio-2012","category-primalforms-software-news","category-software-news","category-windows-powershell","tag-694","tag-powershell","tag-powershell-studio","tag-primalforms","tag-whats-new-whats-changed"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/4051","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=4051"}],"version-history":[{"count":12,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/4051\/revisions"}],"predecessor-version":[{"id":4267,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/4051\/revisions\/4267"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=4051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=4051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=4051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}