Partager via


GUIDs and IDs of Visual Studio Toolbars

This topic enumerates the GUID and ID values of the toolbars that are included in the Visual Studio integrated development environment (IDE), and of the groups they contain. 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.

Note

Many of the toolbars available to Visual Studio are not defined by Visual Studio, and their GUID and ID values are not public. This topic lists only toolbars that are defined in Visual Studio SDK .vsct files.

For more information about how to work with IDE objects that are defined in .vsct files, see Common Tasks with User Interface Elements.

The default toolbars provided by the Visual Studio IDE use the GUID guidSHLMainMenu, except where otherwise specified by using GUID:ID syntax.

IDE Toolbars

The following toolbars are provided by the Visual Studio IDE. Toolbars can be displayed by selecting them on the Toolbars submenu of the Tools menu. Toolbars in tool windows are not included in this section.

Only groups can descend directly from toolbars. To add a group, set its parent to the GUID and ID of the toolbar. To add a button to a toolbar, set its parent to a group on the toolbar.

Toolbar

ID

Standard

IDM_VS_TOOL_STANDARD

Build

IDM_VS_TOOL_BUILD

Text Editor

IDM_VS_TOOL_TEXTEDITOR

Debug

guidVSDebugGroup:IDM_DEBUG_TOOLBAR

Debug Location

guidVSDebugGroup:IDM_DEBUG_CONTEXT_TOOLBAR

Special Toolbars

These toolbars are defined by the Visual Studio IDE, but they serve specialized functions and do not host command groups.

Toolbar

ID

Add Command

IDM_VS_TOOL_ADDCOMMAND

Undefined

IDM_VS_TOOL_UNDEFINED

XML Schema

IDM_VS_TOOL_SCHEMA

XML Data

IDM_VS_TOOL_DATA

Groups on the IDE Toolbars

To add a button to a standard toolbar, set one of the following groups as its parent. The groups are sorted by parent toolbar.

Standard Toolbar Groups

Name

ID

Save/Open

IDG_VS_TOOLSB_SAVEOPEN

Cut/Copy

IDG_VS_TOOLSB_CUTCOPY

Undo/Redo

IDG_VS_TOOLSB_UNDOREDO

Run/Build

IDG_VS_TOOLSB_RUNBUILD

Search

IDG_VS_TOOLSB_SEARCH

Windows

IDG_VS_TOOLSB_WINDOWS

New Windows

IDG_VS_TOOLSB_NEWWINDOWS

Load/Save

IDG_VS_WINDOWUI_LOADSAVE

Gauge

IDG_VS_TOOLSB_GAUGE

Build Toolbar Groups

Name

ID

Build bar

IDG_VS_BUILDBAR

Cancel

IDG_VS_BUILD_CANCEL

Text Editor Toolbar Groups

Name

ID

Completion

IDM_VS_TOOL_TEXTEDITOR

Indent

IDG_VS_EDITTOOLBAR_INDENT

Comment

IDG_VS_EDITTOOLBAR_COMMENT

Bookmarks

IDG_VS_EDITTOOLBAR_TEMPBOOKMARKS

Debug Toolbar Groups

Name

ID

Execution

IDM_DEBUG_TOOLBAR

Stepping

IDG_DEBUG_TOOLBAR_STEPPING

Watch

IDG_DEBUG_TOOLBAR_WATCH

Windows

IDG_DEBUG_TOOLBAR_WINDOWS

Debug Location Toolbar Groups

Name

ID

Debug location

IDG_DEBUG_CONTEXT_TOOLBAR

Tool Window Toolbars

Toolbars can appear directly in the IDE or in tool windows such as Solution Explorer. Because tool windows are not defined in .vsct files, tool window toolbars do not have defined parents. Instead, they are placed in code. The following table shows the toolbars that appear on tool windows in the IDE, and the command groups they contain.

Note

Toolbars and groups use the GUID guidSHLMainMenu, except where otherwise specified by using GUID:ID syntax. Where a GUID is specified for a toolbar, it also applies to the groups that descend from that toolbar.

Tool Window

Toolbar

Groups

Solution Explorer

IDM_VS_TOOL_PROJWIN

IDG_VS_PROJ_TOOLBAR1..5

Server Explorer

guid_SE_MenuGroup:IDM_SE_TOOLBAR_SERVEREXPLORER

IDG_SE_TOOLBAR_REFRESH

Properties

IDM_VS_TOOL_PROPERTIES

IDG_VS_PROPERTIES_SORT

IDG_VS_PROPERTIES_PAGES

Class View

IDM_VS_TOOL_CLASSVIEW

IDG_VS_CLASSVIEW_FOLDERS

IDG_VS_CLASSVIEW_SEARCH

IDG_VS_CLASSVIEW_SETTINGS

Class View

IDM_VS_TOOL_CLASSVIEW_GO

IDG_VS_CLASSVIEW_SEARCH2

Object Browser

IDM_VS_TOOL_OBJBROWSER

IDG_VS_OBJBROWSER_SUBSETS

IDG_VS_OBJBROWSER_SEARCH

IDG_VS_OBJBROWSER_ADDREFERENCE

IDG_VS_OBJBROWSER_BROWSERSETTINGS

Object Browser

IDM_VS_TOOL_OBJECT_BROWSER_GO

IDG_VS_OBJBROWSER_SEARCH2

Output

IDM_VS_TOOL_OUTPUTWINDOW

IDG_VS_OUTPUTWINDOW_SELECT

IDG_VS_OUTPUTWINDOW_GOTO

IDG_VS_OUTPUTWINDOW_NEXTPREV

IDG_VS_OUTPUTWINDOW_CLEAR

IDG_VS_OUTPUTWINDOW_WORDWRAP

Find and Replace

IDM_VS_TOOL_UNIFIEDFIND

IDG_VS_FINDTAB

IDG_VS_REPLACETAB

Find Results 1

IDM_VS_TOOL_FINDRESULTS1

IDG_VS_FINDRESULTS1_GOTO

IDG_VS_FINDRESULTS1_NEXTPREV

IDG_VS_FINDRESULTS1_CLEAR

IDG_VS_FINDRESULTS1_STOPFIND

Find Results 2

IDM_VS_TOOL_FINDRESULTS2

IDG_VS_FINDRESULTS2_GOTO

IDG_VS_FINDRESULTS2_NEXTPREV

IDG_VS_FINDRESULTS2_CLEAR

IDG_VS_FINDRESULTS2_STOPFIND

Snippet

IDM_VS_TOOL_SNIPPETMENUS

IDG_VS_SNIPPET_REPL

IDG_VS_SNIPPET_REF

IDG_VS_SNIPPET_PROP

Bookmarks

IDM_VS_TOOL_BOOKMARKWIND

IDG_VS_BWNEWFOLDER

IDG_VS_BWNEXTBM

IDG_VS_BWNEXTBMF

IDG_VS_BWENABLE

IDG_VS_BWDELETE

Task List

IDM_VS_TOOL_TASKLIST

IDG_VS_TASKLIST_PROVIDERLIST

User Tasks

IDM_VS_TOOL_USERTASKS

IDG_VS_TASKLIST_PROVIDERLIST

IDG_VS_USERTASKS_EDIT

Error List

IDM_VS_TOOL_ERRORLIST

IDG_VS_ERRORLIST_ERRORGROUP

IDG_VS_ERRORLIST_WARNINGGROUP

IDG_VS_ERRORLIST_MESSAGEGROUP

Call Browser

IDM_VS_TOOL_CALLBROWSER1..16

IDG_VS_TOOLBAR_CALLBROWSER1_ACTIONS

IDG_VS_TOOLBAR_CALLBROWSER1_TYPE

IDG_VS_TOOLBAR_CALLBROWSER1_CBSETTINGS

Breakpoints

guidVSDebugGroup:IDM_BREAKPOINTS_WINDOW_TOOLBAR

IDG_BREAKPOINTS_WINDOW_NEW

IDG_BREAKPOINTS_WINDOW_DELETE

IDG_BREAKPOINTS_WINDOW_ALL

IDG_BREAKPOINTS_WINDOW_VIEW

IDG_BREAKPOINTS_WINDOW_EDIT

IDG_BREAKPOINTS_WINDOW_COLUMNS

Disassembly

guidVSDebugGroup:IDM_DISASM_WINDOW_TOOLBAR

IDG_DISASM_WINDOW_TOOLBAR

Memory 1-4

guidVSDebugGroup:IDM_MEMORY_WINDOW_TOOLBAR1…4

IDG_MEMORY_EXPRESSION1..4

IDG_MEMORY_COLUMNS1..4

Processes

guidVSDebugGroup:IDM_ATTACHED_PROCS_TOOLBAR

IDG_ATTACHED_PROCS_EXECCNTRL IDG_ATTACHED_PROCS_STEPPING

IDG_ATTACHED_PROCS_EXECCNTRL2

IDG_ATTACHED_PROCS_ATTACH

IDG_ATTACHED_PROCS_COLUMNS

See Also

Tasks

Walkthrough: Adding a Menu Controller to a Toolbar

Walkthrough: Adding a Toolbar to a Tool Window

Concepts

GUIDs and IDs of Visual Studio Menus