Wednesday, January 30, 2013

Generating GUIDs in Visual Studio QUICKLY!

If you work with WIX installers you will want and easy way to create and paste guids into your code.

Visual Studio 2012 has a create GUID tool but it is too slow.  I wanted a simple keystroke.

After looking at addins to VS2012 I decide it was too much trouble.

The 3 minute solution:
Install AutoHotkey,  and let it create a sample script for you the first time it runs.

Replace that script with the one found here.



And now Window-Shift-G does exactly what I wanted.

Thanks to both AutoHotKey and Ian Prest
References:
http://www.autohotkey.com/
https://gist.github.com/3845947