0
我正在开发一个Visual Studio扩展,它需要使用快捷键Ctrl + 6执行命令,用户应该能够执行命令,如VS构建命令(Ctrl + F5 )。我使用了下面的方法,但它需要在选择文本编辑器时执行该命令。请咨询如何解决这个问题。如何执行到Visual Studio扩展的快捷键命令
<KeyBindings>
<KeyBinding guid="CommandSet" id="MyCommand" key1="6" mod1="CONTROL" editor="guidSourceCodeTextEditor" />
</KeyBindings>
<Symbols>
<!-- This is the package guid. -->
<GuidSymbol name="MyPackage" value="{ccccc-cc-cc-cc-ccccc}" />
<GuidSymbol name ="guidSourceCodeTextEditor" value="{8b382828-6202-11d1-8870-0000f87579d2}" />
<!-- This is the guid used to group the menu commands together -->
<GuidSymbol name="CommandSet" value="{xxxxx-xxxx-xxx-xxx-xxxxxxx}">
<IDSymbol name="MyCommand" value="0x0100" />
</GuidSymbol>
</Symbols>