Udostępnij za pośrednictwem


How to find Command GUID:ID pairs

Currently we have no way of displaying the GUID:ID pairs of Visual Studio command bars.  Here's a technique presented by Paul Harrington --

With a little patience, you can get this [information] today via Export Settings. Start by resetting your settings to the "General Settings" profile. Then make a small, but identifiable customization to the command bar you're interested in. For example:

  • * If it's a toolbar, show it if it's hidden, hide it if it's shown.
  • * If it's a menu, go into customize mode (Tools/Customize...) and rename it to something identifiable

Export your settings (you only need to include "Menu and Command Bar Customizations" under the General Settings category) and open up the exported file (it's an XML format). You should be able to find your customization under the "UserCustomizations" node.

 

For example, here's my file after showing the "Dialog Editor" toolbar:

 

<UserCustomizations>

<modify_toolbar Menu="{E148F049-C570-4F55-84A6-6DA870AF229E}:00001388" Visibility="show" FullScreen="hide" Dock="top" Row="2" DockRectangle="0,49,375,75"/>

</UserCustomizations>

 

The GUID:ID of the Dialog Editor toolbar is right there in the modify_toolbar record: {E148F049-C570-4F55-84A6-6DA870AF229E}:00001388

 

Here's another where I renamed the "Community" menu:

<modify Cmd="{D309F791-903F-11D0-9EFC-00A0C911004F}:00000090" CmdPri="fe000000" Group="{D309F791-903F-11D0-9EFC-00A0C911004F}:00000105" GroupPri="fd000000" Menu="{D309F791-903F-11D0-9EFC-00A0C911004F}:00000000" Name="UniqueStringForExport"/>

Here you see the GUID:ID for the Community Menu, the GUID:ID for the group it lives in and the GUID:ID for its parent Menu (in which that group resides), which in this case is the main MenuBar.

------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.

Comments

  • Anonymous
    May 23, 2006

    What if you want to find the Command GUID:ID pair associated with a context menu item?&amp;nbsp; Paul Harrington...
  • Anonymous
    August 11, 2010
    Why would I want a GUID:ID pair? Which method needs to submit it that way?