Three PowerGUI Script Editor Add-ins


I have created three script editor add-ins for the PowerGUI script editor;

I mentioned the first one in a previous post (https://unlockpowershell.wordpress.com/2010/10/30/copytocolorizedhtmlscript-editor-add-on-for-powergui/)

You can download that add-in at the following page: Copy to Colorized HTML

The second add-in was created to support my work on the PowerShell Bible, as code lines need to be less than 80 characters, I am using lots of splatting. It’s a lot easier for me to type the cmdlet name and parameters on one line, and then convert to a splatted has table, as I get intellesense and tab completion.

Download this add-in at the following page: Create Splatted Hash Table

The third add-in will copy the current script to a new window. As part of this, it creates a new folder for the new script, and saves it with a file name of <script name>,Copy.n.ps1 where ‘n’ is equal to the current number of copies in that folder.

I started this out as a fun follow up to Doug Finke’s version for the PowerShell ISE:

http://www.dougfinke.com/blog/index.php/2010/11/16/how-to-duplicate-the-current-powershell-ise-file/

I thought it would be a simple copy to new window, but Denniver on the PowerGUI forums suggested the save to a new file concept. Thanks, Denniver!

Download this add-in at the following page: Copy To New Window

Download them, play with them, leave comments here or on the PowerGUI forums, and I will try to extend them to fit your needs.

Advertisement
  1. #1 by Doug Finke on January 11, 2011 - 16:25

    Hey, stop stealing my stuff 🙂

    Thanks for the link love.

    • #2 by Karl Mitschke on January 11, 2011 - 16:37

      It’s not a “copy” – I use Ctrl-Alt-C 😉
      You use Ctrl-Alt-J

      🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: