KeyBindings Element
Visual Studio 2015
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
| 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. |
<KeyBindings>
<KeyBinding guid="guidWidgetPackage" id="cmdidUpdateWidget"
editor="guidWidgetEditor" key1="VK_F5"/>
<KeyBinding guid="guidWidgetPackage" id="cmdidRunWidget"
editor="guidWidgetEditor" key1="VK_F5" mod1="Control"/>
</KeyBindings>
Show: