Skip to content

docs(ui): add Context Menus documentation#115

Merged
CalvinAllen merged 1 commit intomainfrom
docs/ui/context-menus
Feb 4, 2026
Merged

docs(ui): add Context Menus documentation#115
CalvinAllen merged 1 commit intomainfrom
docs/ui/context-menus

Conversation

@CalvinAllen
Copy link
Contributor

Summary

Add comprehensive documentation for adding commands to Visual Studio context menus.

Topics Covered

  • Quick start with Community Toolkit
  • Context menu GUIDs reference tables:
    • Solution Explorer (solution, project, folder, item, references)
    • Code Editor
    • Tool Windows (Error List, Output, Task List)
  • VSCT structure for adding commands
  • Common context menu IDs (IDM_VS_CTXT_*)
  • CommandPlacements for adding to multiple menus
  • Dynamic visibility:
    • BeforeQueryStatus with Toolkit and traditional approach
    • UI Context visibility constraints
  • Common UI contexts table
  • Creating submenus in context menus
  • Complete file processing command example with VSCT
  • Best practices

Test plan

  • Verify the page renders correctly
  • Verify the page appears in the Fundamentals section of the sidebar
  • Verify code examples are properly syntax highlighted

Closes #32

Add comprehensive documentation for context menus:
- Quick start with Community Toolkit
- Context menu GUIDs for Solution Explorer, Editor, Tool Windows
- VSCT structure for adding commands
- Common context menu IDs reference
- CommandPlacements for multiple locations
- Dynamic visibility with BeforeQueryStatus
- UI Context visibility constraints
- Creating submenus
- Complete file processing example
- Best practices

Closes #32
@CalvinAllen CalvinAllen merged commit fb726d6 into main Feb 4, 2026
2 checks passed
@CalvinAllen CalvinAllen deleted the docs/ui/context-menus branch February 4, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

docs(ui): add Context Menus documentation

1 participant