Share via


VSX Fundamental: how to intercept a Visual Studio command and find command and group IDs

This question is frequently asked in the forum.

The first thing to do is to find the command group GUID and command ID. Please refer to Using EnableVSIPLogging to identify menus and commands with VS 2005 + SP1.

After setting the EnableVSIPLogging in the registry, CTRL+SHIFT and click target command button will pop up a message box which displays command group GUID and command id. Use CTRL+C to copy the text to clipboard.

Visual Studio 2008 and 2010 still support EnableVSIPLogging.

The second step is to writing your code to intercept this command, please follow the instructions by Pablo: How do I intercept a Visual Studio command execution

Hope it helps.

by Hongye ^HY , TFS & VSX expert, 3 Star Contributor at forum

If this article helps, please follow me and my team @ Twitter