1

I am creating an Add-In for Visual Studio 2010. Using this Addin I want to add some extra functionality when the user is typing to the editor or copies some text from it.

I searched over the Web to find out what are the command names that Visual Studio executes to add events for these commands. But I didn't find something realy helpful. All I found is some examples and just by luck I saw that the copy-command name is "Edit.Copy".

Is there a way to print all available commands from Visual Studio? Any useful link will be very helpful too.

chaliasos
  • 9,659
  • 7
  • 50
  • 87

2 Answers2

1

I finally managed to print the commands with the following code:

private void EnumerateCommads()
{
    foreach (Command command in _applicationObject.Commands)
    {
        //print command
    }
}
chaliasos
  • 9,659
  • 7
  • 50
  • 87
0

For those who need to know another solution without code, you can go to Tools\Options\Environment\Keyboard

ptittof57
  • 494
  • 4
  • 7