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

Shortcut in VSIX Extension for VS2015 does not work

$
0
0

I want to develop an own VS extension and have no experince with this one. So i tried the samples from microsoft. And they work. I get my entry in the menu and if i push this i get the dialogbox. But now i want to trigger this command over a shortcut. The describing for this is also very easy.

<Commands>
...
     <Button guid="guidCommand1PackageCmdSet" id="Command1Id"
        priority="0x0100" type="Button">
        <Parent guid="guidCommand1PackageCmdSet" id="MyMenuGroup" />
        <Icon guid="guidImages" id="bmpPic1" />
        <Strings>
          <ButtonText>Invoke Command1</ButtonText>
        </Strings>
      </Button>
...
 </Commands>

  <KeyBindings>
    <KeyBinding guid="guidCommand1PackageCmdSet" id="Command1Id" editor="guidVSStd97" key1="D" mod1="Control" />
  </KeyBindings>"

But if i compile my project and start it with the debugger, the shortcut does not work. I tried other combinations of key and modifier. I can start the dialog direct over the menu. But with the shortcut there nothing happens. If i look in the menu there is no shotcut shown beside the command. If i attach a key2 and a mod2, i see this beside the command in menu. But by hitting the buttons nothing happens. Other shortcuts works. Strg+K, Strg+B for excample opens the VS-Dialog.

So what to do? Any further ideas? Thanks for all hints.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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