creating-dynamic-commands
CommunityCreate dynamic VS menu items at runtime.
Authormadskristensen
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Dynamic commands solve the problem of variable-length menus by generating menu items at runtime from a data source, enabling contextual actions like recent files lists or data-driven menus.
Core Features & Use Cases
- Toolkit-based dynamic commands using BaseDynamicCommand<TCommand, TItem> with DynamicItemStart in .vsct for in-process dynamic items.
- VSSDK approach using OleMenuCommand and MatchedCommandId, enabling per-item behavior created on-the-fly.
- Guidance on when to prefer dynamic menus versus tool windows or visibility-based commands.
Quick Start
Begin by defining a dynamic item anchor in your .vsct and implementing GetItems to supply the data, then handle before-query-status and execute logic for each generated item.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: creating-dynamic-commands Download link: https://github.com/madskristensen/vs-agent-plugins/archive/main.zip#creating-dynamic-commands Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.