Friday, April 4, 2008

Microsoft Visual Studio 2005 - Global shortcut keys

The following shortcut key combinations can be used in various places within the integrated development environment (IDE).

Command NameShortcut KeysDescription
Edit.Copy CTRL + C
CTRL + INSERT
Copies the currently selected item to the system clipboard.
Edit.Cut CTRL + X
SHIFT + DELETE
Removes the currently selected item to the system clipboard.
Edit.CycleClipboardRing CTRL + SHIFT + INS
CTRL + SHIFT + V
Pastes an item from the Clipboard Ring tab of the Toolbox at the insertion point in the file and automatically selects the pasted item. You can review each item on the Clipboard by repeatedly pressing the shortcut keys.
Edit.GoToNextLocation F8 Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Each time you press F8, you move to the next item in the list.
Edit.GoToPreviousLocation SHIFT + F8 Moves the cursor to the previous item in the Task List window or Find Results window.
Edit.GoToReference SHIFT + F12 Displays the reference of the selection in the code.
Edit.OpenFile CTRL + SHIFT + G Displays the Open File dialog box where you can select an existing file to open.
Edit.Paste CTRL + V SHIFT + INSERT Inserts the Clipboard contents at the insertion point.
Edit.Redo CTRL + SHIFT + Z
CTRL + Y
SHIFT + ALT + BACKSPACE
Restores the previously undone action.
Edit.SelectionCancel ESC Closes a menu or dialog box, cancels an operation in progress, or places focus in the current document window. Available only in the .NET Framework Designer.
Edit.Undo ALT + BACKSPACE
CTRL + Z
Reverses the last editing action.
File.Print CTRL + P Displays the Print dialog box where you can choose printer settings.
File.SaveAll CTRL + SHIFT + S Saves all documents in the current solution and any files in the external files project.
File.SaveSelectedItems CTRL + S Saves the selected items in the current project.
Tools.GoToCommandLine CTRL + / Places the caret in the Find/Command box on the Standard toolbar.
View.NextTask CTRL + SHIFT + F12 Moves to the next task in the Task List window.
View.PopBrowseContext CTRL + SHIFT + 8 Returns to the location from where the last browse operation was performed. Available in the Object Browser or Class View window.
View.ViewCode F7 Displays the selected item in Code view of the Editor.
View.ViewDesigner SHIFT + F7 Displays the selected item in Design view of the Editor.
View.WebNavigateBack ALT + LEFT ARROW Displays the previous page in the viewing history. Available only in the Web Browser window.
View.WebNavigateForward ALT + RIGHT ARROW Displays the next page in the viewing history. Available only in the Web Browser window.

No comments: