I’m currently working on creating some custom discussion boards in SharePoint 2007 for a client. With that comes creation of features and content types, which in turn requires GUIDs to be generated. Generating a GUID in Visual Studio is easy. Just click Tools on the menu, followed by Create GUID. So what’s the big deal?
When creating a bunch of content types I find that it becomes cumbersome to click the menu, copy a GUID, then paste it into the document before finally removing braces and dashes. So I’ve created two short macros to speed up the process with simple keyboard shortcuts. This is mostly a reminder for myself so I remember how to do this next time I’m setting up a new Dev environment, but I’m sure it can come in handy for someone else as well.