adding-tool-window-toolbars

Add declarative toolbars to Visual Studio tool windows via VSCT or ToolbarConfiguration.

14|2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/madskristensen/vs-agent-plugins --skill adding-tool-window-toolbars
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-tool-window-toolbars
Source: https://github.com/madskristensen/vs-agent-plugins/tree/main/skills/adding-tool-window-toolbars
Command: npx skills add https://github.com/madskristensen/vs-agent-plugins --skill adding-tool-window-toolbars

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tool windows in Visual Studio extensions often lack consistent, native toolbars; this skill provides guidance to declare and wire tool window toolbars declaratively for correct command routing, theming, and behavior across VS extensions.

Core Features & Use Cases

  • Declarative toolbar definitions via VSCT (for VSSDK/Community Toolkit) or ToolbarConfiguration (VisualStudio.Extensibility).
  • Grouping, iconography, and docking support to place toolbars at the top or sides of tool windows.
  • Use cases include adding primary actions to a tool window, organizing commands, and ensuring keyboard shortcuts and theming integrate with Visual Studio.

Quick Start

Create or modify a tool window and declare its toolbar using VSCT or ToolbarConfiguration, then bind the toolbar to the ToolWindowPane and implement command handlers.

Frequently Asked Questions about adding-tool-window-toolbars

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a toolbar to a Visual Studio tool window?

To add a tool window toolbar in Visual Studio extensions, declare it declaratively via VSCT or ToolbarConfiguration, then bind it to the ToolWindowPane and implement command handlers for icons, groups, and docking.

Does VisualStudio.Extensibility support adding toolbars to tool windows?

Yes, VisualStudio.Extensibility supports adding toolbars to tool windows natively by using the ToolbarConfiguration class to declaratively define commands, groups, and docking positions for native integration.

What is the best way to organize commands in a VS extension tool window?

The best way to organize commands in a VS extension tool window is to use declarative toolbar definitions, which provide native command routing, theming, and iconography support via VSCT or ToolbarConfiguration.

How do I dock a toolbar inside a Visual Studio tool window?

You dock a toolbar inside a Visual Studio tool window by using declarative toolbar definitions that support grouping and docking, allowing you to place primary actions at the top or sides of the ToolWindowPane.

Can I use the VSIX Community Toolkit to add a tool window toolbar?

Yes, you can use the VSIX Community Toolkit to add a tool window toolbar by defining the toolbar and commands in a VSCT file and binding them to the ToolWindowPane.ToolBar property.

Why are my Visual Studio extension tool window commands missing theming and shortcuts?

Tool window commands miss theming and keyboard shortcuts when not wired through declarative toolbar definitions, which ensure proper integration with native Visual Studio command routing and behavior.