We recommend using Visual Studio 2017

GUIDs and IDs of Visual Studio Menus

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at GUIDs and IDs of Visual Studio Menus.

This topic enumerates the GUID and ID values of the menus and groups on the Visual Studio menu bar. These values are defined in .vsct files that are installed as part of the Visual Studio SDK. For more information, see IDE-Defined Commands, Menus, and Groups.

For more information about how to work with integrated development environment (IDE) objects that are defined in .vsct files, see Extending Menus and Commands.

The menus and groups on the Visual Studio menu bar use the GUID guidSHLMainMenu. The menu bar itself has an ID of IDM_VS_TOOL_MAINMENU.

To add a menu to the menu bar, set one of these groups as its parent.

GroupID
File/Edit/ViewIDG_VS_MM_FILEEDITVIEW
RefactoringIDG_VS_MM_REFACTORING:
ProjectIDG_VS_MM_PROJECT
BuildIDG_VS_MM_BUILDDEBUGRUN
Format/ToolsIDG_VS_MM_TOOLSADDINS
Window/Help/CommunityIDG_VS_MM_WINDOWHELP
AddinsIDG_VS_MM_MACROS
FullScreenBarIDG_VS_MM_FULLSCREENBAR

To add a group to an existing Visual Studio menu, set one of the following menus as its parent. Submenus are not included in this list.

MenuID
FileIDM_VS_MENU_FILE
EditIDM_VS_MENU_EDIT
ViewIDM_VS_MENU_VIEW
RefactorIDM_VS_MENU_REFACTORING
ProjectIDM_VS_MENU_PROJECT
BuildIDM_VS_MENU_BUILD
FormatIDM_VS_MENU_FORMAT
ToolsIDM_VS_MENU_TOOLS
WindowIDM_VS_MENU_WINDOW
AddinsIDM_VS_MENU_ADDINS
CommunityIDM_VS_MENU_COMMUNITY
HelpIDM_VS_MENU_HELP

The following lists show the groups that descend directly from menus on the Visual Studio menu bar. The quickest way to add a command to a Visual Studio menu is to set one of these groups as the parent. Groups that descend from submenus do not appear in this section.

File Menu Groups

GroupID
New/OpenIDG_VS_FILE_FILE
AddIDG_VS_FILE_ADD
SolutionIDG_VS_FILE_SOLUTION
MiscIDG_VS_FILE_MISC
SaveIDG_VS_FILE_SAVE
RenameIDG_VS_FILE_RENAME
BrowserIDG_VS_FILE_BROWSER
PrintIDG_VS_FILE_PRINT
Most Recently UsedIDG_VS_FILE_MRU
MoveIDG_VS_FILE_MOVE
ExitIDG_VS_FILE_EXIT

Edit Menu Groups

GroupID
Undo/RedoIDG_VS_EDIT_UNDOREDO
Cut/Copy/PasteIDG_VS_EDIT_CUTCOPY
SelectIDG_VS_EDIT_SELECT
GoToIDG_VS_EDIT_GOTO
FindIDG_VS_EDIT_FIND
ObjectsIDG_VS_EDIT_OBJECTS
OLE VerbsIDG_VS_EDIT_OLEVERBS
Command WellIDG_VS_EDIT_COMMANDWELL

Refactor Menu Groups

GroupID
CommonIDG_REFACTORING_COMMON
AdvancedIDG_REFACTORING_ADVANCED

View Menu Groups

GroupID
Form CodeIDG_VS_VIEW_FORMCODE
BrowserIDG_VS_VIEW_BROWSER
Define ViewsIDG_VS_VIEW_DEFINEVIEWS
WindowsIDG_VS_VIEW_WINDOWS
Architect WindowsIDG_VS_VIEW_ARCH_WINDOWS
Organization WindowsIDG_VS_VIEW_ORG_WINDOWS
Code BrowserIDG_VS_VIEW_CODEBROWSENAV_WINDOWS
Dev WindowsIDG_VS_VIEW_DEV_WINDOWS
ToolbarsIDG_VS_VIEW_TOOLBARS
SymbolsIDG_VS_VIEW_SYMBOLNAVIGATE
NavigateIDG_VS_VIEW_NAVIGATE
Small NavigateIDG_VS_VIEW_SMALLNAVIGATE
Object BrowserIDG_VS_VIEW_OBJBRWSR
Command WellIDG_VS_VIEW_COMMANDWELL
Property PagesIDG_VS_VIEW_PROPPAGES
RefreshIDG_VS_VIEW_REFRESH

Project Menu Groups

GroupID
Miscellaneous AddIDG_VS_PROJ_MISCADD
AddIDG_VS_PROJ_ADD
FolderIDG_VS_PROJ_FOLDER
Unload/ReloadIDG_VS_PROJ_UNLOADRELOAD
ReferenceIDG_VS_PROJ_REFERENCE
OptionsIDG_VS_PROJ_OPTIONS
SettingsIDG_VS_PROJ_SETTINGS

Build Menu Groups

GroupID
SolutionIDG_VS_BUILD_SOLUTION
SelectionIDG_VS_BUILD_SELECTION
Profile Guided OptimizationIDG_VS_PGO_SELECTION
MiscellaneousIDG_VS_BUILD_MISC
CancelIDG_VS_BUILD_CANCEL

Tools Menu Groups

GroupID
Command LineIDG_VS_TOOLS_CMDLINE
SnippetsIDG_VS_TOOLS_SNIPPETS
Object SubsetIDG_VS_TOOLS_OBJSUBSET
OptionsIDG_VS_TOOLS_OPTIONS
Other 2IDG_VS_TOOLS_OTHER2
External ToolsIDG_VS_TOOLS_EXT_TOOLS
External CustomizationsIDG_VS_TOOLS_EXT_CUST

Window Menu Groups

GroupID
NewIDG_VS_WINDOW_NEW
Dock/CloseIDG_VS_DOCKCLOSE
Dock/HideIDG_VS_DOCKHIDE
ArrangeIDG_VS_WINDOW_ARRANGE
NavigationIDG_VS_WINDOW_NAVIGATION
ListIDG_VS_WINDOW_LIST

Help Menu Groups

GroupID
SamplesIDG_VS_HELP_SAMPLES
SupportIDG_VS_HELP_SUPPORT
AboutIDG_VS_HELP_ABOUT

The following hierarchy shows the submenus that are associated with the menus on the Visual Studio menu bar. Because only a group can have a menu as its parent, every submenu must descend from a group on a menu, instead of directly from the menu. For more information about the relationship between menus, groups, and submenus, see Adding a Submenu to a Menu.

System_CAPS_ICON_note.jpg Note

The names of the menus on the Visual Studio menu bar are not separately shown in this hierarchy because they can be inferred from the naming convention for groups in the IDE, as follows: IDG_VS_Menu Name_Group Name.

Parent GroupSubmenuChild Groups
IDG_VS_FILE_FILEIDM_VS_CSCD_NEWIDG_VS_FILE_NEW_CASCADE
IDM_VS_CSCD_OPENIDG_VS_FILE_OPENP_CASCADE
IDG_VS_FILE_OPENF_CASCADE
IDG_VS_FILE_ADDIDM_VS_CSCD_ADDIDG_VS_FILE_ADD_PROJECT_NEW
IDG_VS_FILE_ADD_PROJECT_EXI
IDG_VS_FILE_MRUIDM_VS_CSCD_FILEMRUIDG_VS_FILE_FMRU_CASCADE
IDM_VS_CSCD_PROJMRUIDG_VS_FILE_PMRU_CASCADE
IDG_VS_FILE_MOVEIDM_VS_CSCD_MOVETOPRJIDG_VS_FILE_MOVE_CASCADE
IDG_VS_FILE_MOVE_PICKER
IDG_VS_VIEW_DEV_WINDOWSIDM_VS_CSCD_FINDRESULTSIDG_VS_WNDO_FINDRESULTS
IDM_VS_CSCD_WINDOWSIDG_VS_VIEW_CALLBROWSER
IDG_VS_WNDO_OTRWNDWS1…6
IDG_VS_WNDO_WINDOWS2
IDG_VS_VIEW_TOOLBARSIDM_VS_CSCD_COMMANDBARS
IDG_VS_EDIT_GOTOIDM_VS_EDITOR_FIND_MENU
IDG_VS_EDIT_OBJECTSIDM_VS_CSCD_MNUDESIDG_VS_MNUDES_INSERT
IDG_VS_MNUDES_EDITNAMES
IDM_VS_CSCD_OLEVERBSIDG_VS_EDIT_OLEVERBS
IDG_VS_BUILD_SELECTIONIDM_VS_CSCD_BUILDIDG_VS_BUILD_CASCADE
IDG_VS_BUILD_PROJPICKER
IDM_VS_CSCD_REBUILDIDG_VS_REBUILD_CASCADE
IDG_VS_REBUILD_PROJPICKER
IDM_VS_CSCD_PROJONLYIDG_VS_PROJONLY_CASCADE
IDM_VS_CSCD_CLEANIDG_VS_CLEAN_CASCADE
IDG_VS_CLEAN_PROJPICKER
IDM_VS_CSCD_DEPLOYIDG_VS_DEPLOY_CASCADE
IDG_VS_DEPLOY_PROJPICKER
IDG_VS_PGO_SELECTIONIDM_VS_CSCD_PGO_BUILDIDG_VS_PGO_BUILD_CASCADE_BUILD
IDG_VS_PGO_BUILD_CASCADE_RUN

GUIDs and IDs of Visual Studio Toolbars
GUIDs and IDs of Visual Studio Commands
Visual Studio Command Table (.Vsct) Files

Show: