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

[SDK Package] Which is the Editor ID (guid) of the Code Window Editor?

$
0
0

Technical Info

  • Visual Studio SDK Version: 2013
  • Windows Version: 8.1 x64
  • Development Language: VB.Net and also C#

Scenario

I've developed my first Visual Studio Package with many help, my extension provides a menu that modifies the current selected text of theCode Window to enclose the text in the specified XML documentation tag.

Image: hxxp://i.imgur.com/veakRRF.png

Problem

As you can see, I have keybindings for all commands, I'm using the guidVSStd97Editor ID as specified in MSDN docs (url: hxxps://msdn.microsoft.com/en-us/library/bb165973%28v=vs.90%29.aspx?f=255&MSPPError=-2147217396), however, as I said my extension only manages the current selected text, then its a weird thing that I can press one of those hotkey combinations under any editor like for example the solution explorer window, I want to avoid that undesired behavior.

Question

I would like to be able to press the hotkeys only when I'm in the Code Window , then, to solve thi issue I would like to know which is the Editor ID of theCode Window to replace the global scope Editor ID in my keybindings section:

<KeyBinding guid="guidCmdSetRef" id="cmdidCRef" editor="guidVSStd97"
            mod1="Control" key1="E"
            mod2="Control" key2="R"/>

Thanks for read.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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