03.26 Keyboard Shortcuts: Creating New Shortcuts

WINDOWS

Alt,T, O

MENU

Tools | Options | Environment | Keyboard

COMMAND

Tools.CustomizeKeyboard

VERSIONS

2005, 2008, 2010

CODE

vstipTool0063

Creating keyboard shortcuts is easy. Let’s walk through an example to show you how. First, go to Tools | Options | Environment | Keyboard.

image with no caption

Now let’s assume we want to modify the “View.ViewCode” command to include a new shortcut. Notice the existing shortcuts (assuming no additional keyboard mapping schemes).

image with no caption

We want to add Ctrl+Z as the shortcut, so click in the Press ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.