Search code examples
vs-extensibilityvisual-studio-sdk

How do I add a button to an existing group on the code context window?


I'd like to place a command button directly underneath the View Call Hierarchy button on the context window.

I've only been able to add a button at the very bottom of the entire menu using IDM_VS_CTXT_CODEWIN.

Is it even possible?

enter image description here


Solution

  • Theoretically, the menu item position is controlled by the Button priority attribute. And you can find other button priorities using the Command Explorer extension. But I didn't try it myself.