Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to use standard VS commands in custom menu (vsct)

$
0
0

Hi,

I have a .vsct file which defines a custom menu. I want to add some default Visual Studio commands to this menu as well. I already managed to add some default commands such as copy / paste:

<UsedCommands><UsedCommand guid="guidVSStd97" id="cmdidCopy"/></UsedCommands><CommandPlacements><CommandPlacement guid="guidVSStd97" id="cmdidCopy" priority="0x0100"><Parent guid="guidMyMenuCommands" id="grpMyMenu"/></CommandPlacement></CommandPlacements>

When I do this, the "Copy" command shows up in my custom menu, with default Icon, text and shortcut - just as it should be. However, this does not work for all commands. To be precise, when I want to add the following commands...

<UsedCommand guid="guidVSStd2K" id="ECMD_FORMATDOCUMENT"/><UsedCommand guid="guidVSStd2K" id="ECMD_COMMENT_BLOCK"/><UsedCommand guid="guidVSStd2K" id="ECMD_UNCOMMENT_BLOCK"/>

...nothing happens - no entry is added to my custom menu. How can I include the above default commands in a custom menu?

Thanks,
Max



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>