{"id":13691,"date":"2017-06-27T08:00:26","date_gmt":"2017-06-27T15:00:26","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=13691"},"modified":"2017-06-27T11:49:05","modified_gmt":"2017-06-27T18:49:05","slug":"powershell-studio-2017-service-release-v5-4-141","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2017\/06\/27\/powershell-studio-2017-service-release-v5-4-141\/","title":{"rendered":"PowerShell Studio 2017: Service Release v5.4.141"},"content":{"rendered":"<p>Today we released a new service build of PowerShell Studio 2017 (v5.4.141). In this build we added a number of new features, including several user requested features.<\/p>\n<p>&nbsp;<\/p>\n<h2>New Features<\/h2>\n<h3><\/h3>\n<h3>Performance Improvements<\/h3>\n<p>This service build reduces the application\u2019s memory footprint and improves the start up time.<\/p>\n<h3><\/h3>\n<h3>Go to Panel Keyboard Shortcuts<\/h3>\n<p>There are new chorded keyboard shortcuts that give focus to any given panel.<\/p>\n<table class=\"nicetable\" border=\"0\" width=\"400\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"200\">Call Stack<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, K<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Console<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, C<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Debug Output<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, D<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Debug Console<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, G<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Find Results<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, R<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Function Explorer<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, F<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Help<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, H<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Object Browser<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, B<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Output<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, O<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Performance<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, M<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Project<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, J<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Properties<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, P<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Snippet<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, S<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Toolbox<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, T<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Variables<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, V<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">Watch<\/td>\n<td valign=\"top\" width=\"200\">Ctrl + Alt + P, W<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To use, press [Ctrl + Alt + P], release, then press the corresponding character key of the chord.<\/p>\n<h3>Reference Assembly Comments<\/h3>\n<p>We added the option to reference assembles via comments, for PrimalSense and syntax coloring purposes, without having to use the <strong>Add-Type<\/strong> cmdlet or the Assemblies dialog.<\/p>\n<p>Format:<\/p>\n<pre lang=\"PowerShell\"># %Reference% = (AssemblyName|AssemblyPath)<\/pre>\n<p>If an assembly is located in the Global Assembly Cache, you can reference it by name.<\/p>\n<pre lang=\"PowerShell\"># %Reference% = System.Drawing<\/pre>\n<p>Or you can reference the assembly by file path.<\/p>\n<pre lang=\"PowerShell\"># %Reference% = C:\\Program Files\\MyAssemblies\\MyAssembly.dll<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Unknown Type\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Unknown-Type.png\" alt=\"Unknown Type\" width=\"545\" height=\"64\" border=\"0\" \/><\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Reference Comment\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Reference-Comment.png\" alt=\"Reference Comment\" width=\"1028\" height=\"50\" border=\"0\" \/><\/h3>\n<p>Note:\u00a0 The reference comment does not have any bearing on the execution of the script.<\/p>\n<p>&nbsp;<\/p>\n<h3>Enclose in Sub-Express Command<\/h3>\n<p>Now you enclose a selection in a sub-expression <strong>$()<\/strong> by pressing [Ctrl + Shift + Alt + 9].<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Wrap Command\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Wrap-Command.png\" alt=\"Wrap Command\" width=\"287\" height=\"115\" border=\"0\" \/><\/p>\n<h3><\/h3>\n<h3>User Folder for Custom PrimalSense Triggers<\/h3>\n<p>You can now store your own custom PrimalSense triggers in a user specific folder:<\/p>\n<p>C:\\Users\\(Username)\\AppData\\Roaming\\PowerShell Studio 2017\\CustomSense\\<\/p>\n<p>These user triggers will take precedence over the pre-installed triggers.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details on Custom PrimalSense Triggers, refer to the following article:<\/p>\n<p><a title=\"https:\/\/www.sapien.com\/blog\/2016\/03\/15\/powershell-studio-2016-custom-primalsense\/\" href=\"https:\/\/www.sapien.com\/blog\/2016\/03\/15\/powershell-studio-2016-custom-primalsense\/\">https:\/\/www.sapien.com\/blog\/2016\/03\/15\/powershell-studio-2016-custom-primalsense\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This service build also adds a new Custom PrimalSense Trigger for the <strong>Encoding<\/strong> parameter:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Encoding PrimalSense\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Encoding-PrimalSense.png\" alt=\"Encoding PrimalSense\" width=\"391\" height=\"209\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Status Bar Process Tracking<\/h3>\n<p>Whenever a process \/ task is running, such as refreshing the local cache or running a script, it now appears in the status bar:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Status Bar - Process Tracking\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Status-Bar-Process-Tracking.png\" alt=\"Status Bar - Process Tracking\" width=\"591\" height=\"121\" border=\"0\" \/><\/p>\n<p>You can use the status bar to cancel a particular task or running script by clicking on the task icon and selecting the <strong>Stop<\/strong> command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Stop Process\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Stop-Process.png\" alt=\"Stop Process\" width=\"558\" height=\"81\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Update Changed Files Automatically<\/h3>\n<p>We added a new option, <em><strong>Update changed files automatically<\/strong><\/em>. When enabled, PowerShell Studio will automatically reload files that are modified externally.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Options-Update-changed-files.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Options - Update changed files\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Options-Update-changed-files_thumb.png\" alt=\"Options - Update changed files\" width=\"597\" height=\"484\" border=\"0\" \/><\/a><\/p>\n<p>Note: PowerShell Studio will still prompt if the file has any unsaved changes.<\/p>\n<p>&nbsp;<\/p>\n<h3>Auto-Elevate Scripts<\/h3>\n<p>When PowerShell Studio encounters a <span style=\"color: #408080;\"><strong>#Requires \u2013RunAsAdministrator<\/strong><\/span> comment, it will automatically elevate the script whenever it is executed.<\/p>\n<p>&nbsp;<\/p>\n<h3>Open PowerShell File Tab Commands<\/h3>\n<p>We added new commands to the file tab context menu:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/File-Tab-Context-Menu-Shell-Commands.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"File Tab Context Menu - Shell Commands\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/File-Tab-Context-Menu-Shell-Commands_thumb.png\" alt=\"File Tab Context Menu - Shell Commands\" width=\"644\" height=\"459\" border=\"0\" \/><\/a><\/p>\n<p>These commands will open a Windows PowerShell console, set to the directory of the selected file.<\/p>\n<p>&nbsp;<\/p>\n<h3>Font and Color Dialog &#8211; Reset to Automatic Color<\/h3>\n<p>We added a reset button to the <strong>Item background<\/strong> color option of the <em><strong>Editor<\/strong> <strong>Font and Color Dialog<\/strong><\/em>:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Editor-Font-and-Color-Reset.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Editor Font and Color Reset\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Editor-Font-and-Color-Reset_thumb.png\" alt=\"Editor Font and Color Reset\" width=\"438\" height=\"484\" border=\"0\" \/><\/a><\/p>\n<p>The new button will reset the color to<em> (Automatic), <\/em>which uses the editor\u2019s current background color to render the item.<\/p>\n<p>&nbsp;<\/p>\n<h3>Unhandled Exception Logging<\/h3>\n<p>If the application encounters an unhandled exception, it will now log the exception information into the following log:<\/p>\n<blockquote><p>C:\\Users\\(username)\\AppData\\Roaming\\SAPIEN\\PowerShell Studio 2017\\ErrorLog.txt<\/p><\/blockquote>\n<p>Use this log to report any errors on our PowerShell Studio product support forum:<\/p>\n<p><a title=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=12\" href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=12\">https:\/\/www.sapien.com\/forums\/viewforum.php?f=12<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><\/h2>\n<h2>Previous Service Release Features<\/h2>\n<p>In the last service release (5.4.140) we introduced the following new features.<\/p>\n<p>&nbsp;<\/p>\n<h3>HashTable Formatting<\/h3>\n<p>In the previous service release, we added a new formatting option, <strong><em>Align HashTable Equal Operators<\/em><\/strong>.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Options-Formating-Align-HashTable.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Options - Formating - Align HashTable\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Options-Formating-Align-HashTable_thumb.png\" alt=\"Options - Formating - Align HashTable\" width=\"597\" height=\"484\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>In this service release, we modified the formatting rules so that it will only equalize spacing for the first key value pair on any given line.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"HashTable Format\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/HashTable-Format.png\" alt=\"HashTable Format\" width=\"684\" height=\"87\" border=\"0\" \/><\/p>\n<h3><\/h3>\n<h3>Splatting Keyboard Shortcut<\/h3>\n<p>You can use the [Ctrl + Alt + S] keyboard short to trigger the Splat Command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Splat Command\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/Splat-Command.png\" alt=\"Splat Command\" width=\"480\" height=\"139\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>PS1XML Editing<\/h3>\n<p>And finally, the last service release added support for ps1xml files.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/View-ps1xml.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"View ps1xml\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/06\/View-ps1xml_thumb.png\" alt=\"View ps1xml\" width=\"644\" height=\"455\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Please continue providing your feedback. Many of the new features included in the service builds are suggestions from users like you. Therefore, if you have any suggestions or feature requests, please share them with us on our <a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=9\">Wish List and Feature Requests<\/a> forum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we released a new service build of PowerShell Studio 2017 (v5.4.141). In this build we added a number of new features, including several user requested features. &nbsp; New Features Performance Improvements This service build reduces the application\u2019s memory footprint and improves the start up time. Go to Panel Keyboard Shortcuts There are new chorded [&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,624,21,632],"tags":[28,1188,645,155],"class_list":["post-13691","post","type-post","status-publish","format-standard","hentry","category-powershell-studio","category-service-build","category-software-news","category-whats-new-software-news","tag-powershell","tag-powershell-studio-2017","tag-service-build-2","tag-service-release"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/13691","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=13691"}],"version-history":[{"count":8,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/13691\/revisions"}],"predecessor-version":[{"id":13702,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/13691\/revisions\/13702"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=13691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=13691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=13691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}