KeyBindings Element


This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The KeyBindings element groups KeyBinding elements and other KeyBindings groupings.


  <KeyBinding>... </KeyBinding>  
  <KeyBinding>... </KeyBinding>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Condition Optional. See Conditional Attributes.

Child Elements

Element Description
KeyBinding Element Specifies keyboard shortcuts for the commands.
KeyBindings Groups KeyBinding elements and other KeyBindings groupings.

Parent Elements

Element Description
CommandTable Element Defines all the elements that represent commands.


  <KeyBinding guid="guidWidgetPackage" id="cmdidUpdateWidget"   
    editor="guidWidgetEditor" key1="VK_F5"/>  
  <KeyBinding guid="guidWidgetPackage" id="cmdidRunWidget"   
    editor="guidWidgetEditor" key1="VK_F5" mod1="Control"/>  

See Also

KeyBinding Element
Visual Studio Command Table (.Vsct) Files