Share via


Anzeigen von Add-Ins auf Symbolleisten und in Menüs

Aktualisiert: November 2007

When you create an add-in by using the Add-In Wizard and then select the option to display it as a command, it is added to the Tools menu by default. If you modify the code, you can also display your add-in on other menus and toolbars (known collectively as CommandBars). Types and members that are related to CommandBars are contained in an assembly named Microsoft.VisualStudio.CommandBars.

Visual Studio offers three kinds of CommandBar objects:

  • Toolbars — Contain one or more menu bars.

  • Menu bars — Commands on toolbars, such as File, Edit, and View.

  • Shortcut menus (also known as context or popup menus.) — Menus that appear on the screen when you right-click a menu or object (such as a file or project). Submenus cascade off menu commands or off shortcut menus. Shortcut menus are similar to other menus in Visual Studio. However, you access them by pointing to an arrow in a menu bar, or by right-clicking an item in the integrated development environment (IDE).

The tasks below demonstrate how to display add-in commands in other locations in Visual Studio.

Task

Description

Gewusst wie: Verfügbarmachen eines Add-Ins im Menü "Extras" (Visual Basic)

Describes how to alter an existing Visual Basic add-in to display itself on the Tools menu.

Gewusst wie: Verfügbarmachen eines Add-Ins im Menü "Extras" (Visual C#)

Describes how to alter an existing Visual C# add-in to display itself on the Tools menu.

Gewusst wie: Verfügbarmachen eines Add-Ins als Schaltfläche auf der Symbolleiste

Describes how to display your add-in as a button on the Visual Studio toolbar.

Gewusst wie: Ändern des Standardsymbols für ein Add-In

Describes how to change the default smiley-face icon to another standard icon.

Gewusst wie: Anzeigen eines benutzerdefinierten Symbols auf der Schaltfläche für das Add-In

Outlines how to change the default smiley-face icon to a custom icon of your own design.

Gewusst wie: Verfügbarmachen eines Add-Ins in einem Kontextmenü

Describes how to display your add-in on a drop down (shortcut) menu.

Siehe auch

Aufgaben

Gewusst wie: Wiederherstellen von Add-In-Befehlen im Menü

Weitere Ressourcen

Zuordnen von Add-In-Befehlen zu Tasten