Keyboard shortcuts for XAML Designer
Note
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
Keyboard shortcuts in XAML Designer can speed up your work by reducing an action that would require multiple mouse-button clicks to a single keyboard shortcut.
Element shortcuts
This table lists the shortcuts that are available for working with elements on the artboard.
To perform this action | Do this |
---|---|
Create an element | Press Ctrl+N |
Duplicate an element | Hold down Alt and press an arrow key. |
Edit the text in a control | Press F2 (press Esc to exit) |
Select a single element | Press Tab to select elements in the order they appear in the document. (You can also select elements using the arrow keys.) |
Select multiple elements | Press and hold Shift while selecting each element |
Select multiple non-adjacent elements | Press and hold Ctrl while selecting the first and last elements |
Move selected elements | Press the arrow keys (You can hold down Shift to increase the distance to move per key press.) |
Rotate an element in 15-degree increments | Hold down Shift while rotating the element |
Select all elements | Press Ctrl+A |
Clear selection of all elements | Press Ctrl+Shift+A |
Show or hide element handles | Press F9 |
Select a property for an element | With an element selected and the focus on the Properties window, press Tab. (Use Ctrl+Tab to change focus to the Properties window.) You can use the arrow keys to select property values from drop-down lists. |
Document Outline window shortcuts
The following table lists the shortcuts available when working with elements in the Document Outline window.
To perform this action | Do this |
---|---|
Hide artboard objects while focus is on the Document Outline window | CTRL + H |
Unhide artboard objects while focus is on the Document Outline window | SHIFT + CTRL + H |
Lock artboard objects while focus is on the Document Outline window | CTRL + L |
Unlock artboard objects while focus is on the Document Outline window | SHIFT + CTRL + L |