The context menu id written in vsshlids.h
begins with IDM_VS_CTXT_*
.
<?xml version="1.0" encoding="utf-8"?>
<CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<Extern href="stdidcmd.h"/>
<Extern href="vsshlids.h"/>
<Commands package="guidVSIXTestProjectPackage">
<Groups>
<Group guid="guidVSIXTestProjectPackageCmdSet" id="MyMenuGroup" priority="0x0600">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_RESULTSLIST"/> <!-- use IDM_VS_CTXT_RESULTSLIST -->
</Group>
</Groups>
<Buttons>
<Button guid="guidVSIXTestProjectPackageCmdSet" id="Command1Id" priority="0x0100" type="Button">
<Parent guid="guidVSIXTestProjectPackageCmdSet" id="MyMenuGroup" />
<Strings>
<ButtonText>🆗 This is My Command</ButtonText>
</Strings>
</Button>
</Buttons>
</Commands>
<Symbols>
<GuidSymbol name="guidVSIXTestProjectPackage" value="{634b60b0-ddf2-429d-a2e7-b5728d2b80e8}" />
<GuidSymbol name="guidVSIXTestProjectPackageCmdSet" value="{9dafab8d-eddd-4d64-ac36-936ebf279b4d}">
<IDSymbol name="MyMenuGroup" value="0x1020" />
<IDSymbol name="Command1Id" value="0x0100" />
</GuidSymbol>
</Symbols>
</CommandTable>