What problem does it solve?
Add commands (menu items, toolbar buttons) to Visual Studio extensions. Use when the user asks how to create a command, add a menu item, add a toolbar button, register a command handler, wire up a .vsct file, use KnownMonikers icons on buttons, or place commands in menus/toolbars in a Visual Studio IDE extension. Covers VisualStudio.Extensibility (out-of-process), VSIX Community Toolkit (in-process), and legacy VSSDK (in-process) approaches.
Core Features & Use Cases
- One-command-per-file pattern with a root Commands/ folder and per-command .cs files for VisualStudio.Extensibility, Toolkit, and VSSDK.
- Clear, cross-model guidance: implement commands using VisualStudio.Extensibility (out-of-process), VSIX Community Toolkit (in-process), or VSSDK (in-process) with .vsct or code-based configuration.
- Tooling-friendly examples and conventions for icon usage (KnownMonikers) and command placement in standard VS menus and toolbars.
Quick Start
Create a new command class under Commands/ and wire it to the menu or toolbar using the model you choose (Extensibility, Toolkit, or VSSDK).