Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Monday, January 18, 2016

Controlling the Auto-Insert Features of SAPIEN PowerShell Studio

For those of you who take my PowerShell classes, you know that I close my curly braces {} when I open them.  I have a slight tendency to forget to do this and then we all get to see the errors.  Hey, I’m human.  When it comes to single and double quotes, I’m usually pretty good at remembering to do this.  In SAPIEN PowerShell Studio, you can control the auto-insert of these various characters.

When you type on of the following in SAPIEN PowerShell Studio, it is automatically closed for you.
(
{
[
For many, this is a nice feature.  For me, the part that I do not like this when I am working with strings.  To fix this, open the Options window from the Home tab







Now just un-check Auto-insert closing string quotes


You can also see that you have the ability to turn off the auto insert for parentheses, square brackets, and curly braces.

Properly customizing the environment to your personal style will greatly increase the efficiency of your coding.  Take the time to familiarize yourself with the Editors options so you can make the most of your coding experience.

No comments: