Monday 8 January 2007

Adding CreateGUID to Visual Studio 2005 Tools menu

These steps can be used to add any external app to the Tools menu, though the example will use CreateGUID.

The first step is to go to Tools -> External Tools...

This will bring up a dialog detailing all the current menu contents. From within this dialog you can change the ordering of the the menu using the "Move Up", "Move Down" buttons, as well as deleting or adding new tool links. Clicking "Add" creates a new entry in the menu contents list.

The focus will move to the Title entry ready for you to give a new name for the entry. Enter "Create &GUID" (The '&' character can be used to specify that the next character is the hotkey for the command)

In the Command entry you can either browse for the guidgen.exe tool or enter the full path yourself. On a default installation for VS2005 the tool resides at: "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\guidgen.exe"

Arguments and Initial directory are not needed by the tool.

Click apply and you now have the Create GUID entry back.

No comments: