adding-context-menus

Community

Create native VS context menus for custom UIs.

Authormadskristensen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Add native-looking context menus to custom WPF UI in Visual Studio extensions (tool windows, custom tree views, list views). Use when the user wants to show a right-click context menu from their own UI that looks native to VS. Do not use regular WPF ContextMenu — it won't match VS theming or support command routing.

Core Features & Use Cases

  • Define context menus in VSCT (type="Context") and show them programmatically with IVsUIShell.ShowContextMenu.
  • Groups create separators and organize actions; use different groups and priorities to control ordering.
  • Works with VSSDK and VSIX Community Toolkit (in-process) to provide integrated command routing and theming.

Quick Start

Define VSCT context menus for your custom UI, wire right-click handlers, and call IVsUIShell.ShowContextMenu at screen coordinates.

Dependency Matrix

Required Modules

None required

Components

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: adding-context-menus
Download link: https://github.com/madskristensen/vs-agent-plugins/archive/main.zip#adding-context-menus

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.