DCSIMG
New PowerGUI Script Editor Add-on - Shay Levy

Shay Levy

If you repeat it, PowerShell it!

New PowerGUI Script Editor Add-on

When you’re working with the PowerGUI script editor, writing new stuff or debugging your scripts, you have several options to run/debug your code:

 

 

As you can see there are two keyboard shortcuts to run code (F5 and CTRL+F5) and there’s one more to execute selected code (CTRL+F7). When I debug my scripts in the script editor I prefer to use just one shortcut, if there is some selected code run it (Execute Selection) otherwise run everything (Start Debugging). We can set the same shortcut for both actions in the editor ( Tools | Customize | Keyboard ) but that would change the default settings of the editor.

With the Add.on.Run module we can override the default shortcut keys and assign both actions (Start Debugging and Execute Selection) to the same keyboard shortcut. When you unload the module the default shortcut keys are operational again.

 

The Add.on.Run module creates a new menu item under the Tools menu, click it or just press F5.

 

 

 

Download the Add-on HERE.

Comments

Twitter Trackbacks for New PowerGUI Script Editor Add-on - Shay Levy [microsoft.co.il] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 New PowerGUI Script Editor Add-on - Shay Levy         [microsoft.co.il]        on Topsy.com

# July 10, 2010 8:23 PM

More handy Script Editor Add-Ons « Dmitry’s PowerBlog: PowerShell and beyond said:

Pingback from  More handy Script Editor Add-Ons « Dmitry’s PowerBlog: PowerShell and beyond

# July 13, 2010 1:27 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: