Creating Custom Shortcut Keys In PowerGUI

The PowerGUI script editor for PowerShell has long been my IDE of choice. I regularly use its facility to ‘Copy As HTML’ so that I can copy slices of code into blog posts with nice colour formatting. Yesterday I was thinking it would be nice to have a shortcut key to do this rather than have to navigate the menu each time, so I made a post on the forums asking for a feature request, but Shay pointed out that it was already possible to do this.

If you navigate to Tools, Customize, Keyboard, you will see the below which lists anything you can create a keyboard shortcut for:

It even has a nice search facility so in my case typing in HTML returns what I was looking for:

Now simply Assign the key combination you wish to use for the shortcut, save the changes and off you go. Nice!