Quantcast
Channel: Windows PowerShell - SAPIEN Blog
Viewing all articles
Browse latest Browse all 308

PowerShell Studio 2014: What New in the Editor?

$
0
0

Let’s look at some of the new features you will find in PowerShell Studio 2014’s editor.

Improved Syntax Coloring

One of the first editing features you might have noticed in PowerShell Studio 2014 is the improved syntax coloring.

Parameter Attributes and Type Coloring:

PowerShell Studio will now color parameter attributes and types when valid:

Attribute and Type Coloring

External Tools Coloring:

Do you use tools like ping or ipconfig? Well we now color those tools as well:

External Tools

Unknown Command Coloring:

When the editor is unable to determine what a command is, it will color it as an unknown command. This gives you a visual hint that something maybe be incorrect in the script. For example, if you mistype Get-Process, the commands will display as follows:

Unknown Command

DSC Coloring:

We provide syntax coloring for DSC scripts:

Configuration

And yes, configurations will appear in the Function Explorer:

Configuration in Function Explorer

As time progresses, we will be adding more support for DSC.

 

Improved PrimalSense Support

We have also made numerous improvements to PowerShell Studio 2014’s PrimalSense.

Parameter Attribute PrimalSense:

Parameter Attribute PrimalSense

Parameter Alias for Functions:

PowerShell Studio will now display parameter alias for user defined functions:

Function Parameter Aliases

 

ValidateSet PrimalSense:
PowerShell Studio even provides ValidateSet PrimalSense for user defined functions:

Validate Set PrimalSense

 

New-Object Properties

You can use the New-Object cmdlet’s Properties parameter to specify the initial values for the object’s properties using a hash table. PowerShell Studio 2014 makes this easier by providing you with the list of the object type’s properties when working within a hash table:

NewObject Properties Hash PrimalSense


Dot Sourcing

We also provide PrimalSense support for dot sourced files, including parameter completion:

Dot Sourcing Parameters

 

PowerShell Studio now provides syntax coloring for functions in dot sourced files:

Dot Sourced Functions

Use the editor’s context menu to open the dot sourced file:

Go To Source File

 

Block Editing

Edit multiple lines at once by pressing  (Alt + Shift + Up /Down):

Multiline Editing

The editor also includes various other improvements, including PrimalSense support for PowerShell variables, such as $Error and $_ in the try catch block.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Technorati Tags: , ,


Viewing all articles
Browse latest Browse all 308

Trending Articles