PowerShell Studio 2012: What’s New? (Part 5)

May 3rd, 2012 by David Corrales
Last updated on May 3rd, 2012

 

Last time we looked at the new script editor features. Now we will take a look at the new Function Explorer as well as other additions.

Function Explorer

The new Function Explorer displays a list of all the functions and events within the current script file:

Function Explorer

If you are working within a Project, the available functions declared in other files will also be displayed.

Navigating with the Function Explorer:

Just by a simple double click on the function or event, it will take you directly to the declaration of the function. This becomes invaluable when dealing with scripts with a large number of functions.

Function Explorer Context Menu:

Function Explorer Context Menu

The context menu allows to do the following:

Go to Declaration
Goes to the function’s declaration (same as double clicking on the function name). If the function is in another project file, then it will navigate to that file.

Insert
Inserts a call to the function.

Copy
Copies the whole function definition to the clipboard.

Rename
Renames the function including all references to the function. Within Projects, it will also update references made to the function by other project files. If you rename an event, all the controls that reference the event will also be updated. As you can see this can be a big time saver when dealing with larger scripts.

Before Function Renaming:

Before Function Rename

After Function Renaming:

After Function Rename

 

Other Additions and Changes:

PowerShell Studio offers many other performance improvement and other numerous minor additions, changes, and keyboard shortcuts that are not listed here. The following is some more prominent miscellaneous additions you will find:

Enhanced Console Input Line

The console now has an enhanced input line that offers the same PrimalSense support as the script editor. You have the option to enable or disable this feature.

Console Input Line

 

Project File Renaming:

When renaming project files, reference functions will be updated accordingly through out the project files.

Before Project File Renaming:

Before Project File Rename

After Project File Renaming:

After Project File Rename

 

Explicit Support For PowerShell Remoting:

PowerShell Studio now has explicit support for PowerShell Remoting. Use the “Run Remotely” option under the Run Menu:

Run Remotely Option

Next you will be presented with a dialog to enter the remote credentials:

Remote Credentials

And finally the script will run on the remote computer.

Note: This feature requires that remoting be enabled on the target system.

 

Remote Debugging:

PowerShell Studio 2012 also supports Remote Debugging. This feature will be discussed in a separate article.

 

Tracepoints:

Just like PrimalScript 2012, PowerShell Studio added support for trace points. See the PrimalScript 2012: What’s New? articles for more details.

Tracepoints

 

All in all, you will find that SAPIEN PowerShell Studio 2012 is a major improvement over its predecessor.

 

 
[Google+]   [Facebook]   [LinkedIn]   [StumbleUpon]   [Digg]   [Reddit]   [Google Bookmark]  

Tags: , , , ,

Comments are closed.