locked
Enumerating the Visual Studio commands and shortcut keys RRS feed

  • Question

  • I've spent a couple hours poking around with IVsSettingsManager trying to figure out how to enumerate all of the commands and shortcut keys, similiar to what you see in the Tools->Options->Keyboard dialog.

    Has anyone else tried to get this info? How can I access this information?

    Saturday, December 18, 2010 8:03 PM

Answers

  • IVsSettingsManager is an abstraction over the registry, command information and keybinding info is not stored in the registry.  The only exposure that exists would be DTE.Commands (exposes all known commands in the IDE). Each DTE.Command object has a Bindings property that has the info you want as far as the key bindings goes.

    Ryan

    Saturday, December 18, 2010 9:38 PM