Shortcut Keys for the Visual Basic .NET Editor

By Richard Mansfield

Part of Visual Basic.NET All-in-One Desk Reference For Dummies Cheat Sheet

Visual Basic .NET not only helps you program like a pro even if you have no programming experience at all, it offers many handy tools to help. One of those tools is a whole range of shortcut keys you can use to cut, copy, and generally direct a program to do what you want it to. The command names, functions, and the shortcut keys are in the following table.

Command Name Shortcut Keys Behavior
Edit.Copy Ctrl + C
Ctrl + Insert
Copies the currently selected item to the Clipboard.
Edit.Cut Ctrl + X
Shift + Delete
Removes the currently selected item, but saves a copy in the
Clipboard in case you want to paste it somewhere.
Edit.GoToNextLocation F8 Moves the cursor to the next item.
Edit.GoToPreviousLocation Shift + F8 Moves the cursor to the previous item.
Edit.GoToReference Shift + F12 Displays the reference of the selection in the code
Edit.OpenFile Ctrl + Shift + G Displays the Open File dialog box.
Edit.Paste Ctrl + V
Shift + Insert
Pastes the contents of the Clipboard at the insertion
Edit.Redo Ctrl + Shift + Z
Ctrl + Y
Shift + Alt + Backspace
Restores the previously undone action.
Edit.SelectionCancel Esc Cancels the current operation or closes a dialog box.
Edit.Undo Alt + Backspace
Ctrl + Z
Reverses the last editing action.
File.Print Ctrl + P Displays the Print dialog box so you can specifiy printer
File.SaveAll Ctrl + Shift + S Saves all documents in the current solution.
File.SaveSelectedItems Ctrl + S Saves all documents in the current solution.
Tools.GoToCommandLine Ctrl + / Places the caret in the Find/Command box on the Standard
View.NextTask Ctrl + Shift + F12 Moves to the next task in the Task List window.
View.ViewCode F7 Displays the selected file (in Solution Explorer) in the Code
Editor window.
View.ViewDesigner Shift + F7 Displays the selected file in the Design. (Simply
double-clicking the filename in Solution Explorer is easier.)
View.WebNavigateBack Alt + left-arrow Displays the previous page in the viewing history.
View.WebNavigateForward Alt + right-arrow Displays the next page in the viewing history.