KeyBindings Element

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at KeyBindings Element.

The KeyBindings element groups KeyBinding elements and other KeyBindings groupings.

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

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

Attributes

AttributeDescription
ConditionOptional. See Conditional Attributes.

Child Elements

ElementDescription
KeyBinding ElementSpecifies keyboard shortcuts for the commands.
KeyBindingsGroups KeyBinding elements and other KeyBindings groupings.

Parent Elements

ElementDescription
CommandTable ElementDefines all the elements that represent commands.
<KeyBindings>  
  <KeyBinding guid="guidWidgetPackage" id="cmdidUpdateWidget"   
    editor="guidWidgetEditor" key1="VK_F5"/>  
  <KeyBinding guid="guidWidgetPackage" id="cmdidRunWidget"   
    editor="guidWidgetEditor" key1="VK_F5" mod1="Control"/>  
</KeyBindings>  

KeyBinding Element
Visual Studio Command Table (.Vsct) Files

Show: