Sunday, July 8, 2012

Mostly used visual studio keyboard shortcuts

below are the shortcuts that I mostly  use in visual studio, descriptions taken from http://msdn.microsoft.com/en-us/library/da5kh0wa.aspx

shortcut

description

CTRL+F Displays the Quick tab of the Find and Replace dialog box.
CTRL+SHIFT+F Displays the In Files tab of the Find and Replace dialog box.
CTRL+H Displays the replace options on the Quick tab of the Find and Replace dialog box.
CTRL+SHIFT+H Displays the replace options on the In Files tab of the Find and Replace dialog box.
CTRL+F3 Finds the next occurrence of the currently selected text, or the word at the cursor.
CTRL+SHIFT+F3 Finds the previous occurrence of the currently selected text, or the word at the cursor.
F3 Finds the next occurrence of the search text.
SHIFT+F3 Finds the previous occurrence of the search text.
CTRL+K, R or SHIFT+F12 Displays the list of references for the selected symbol.
F7 View code, For the selected item, opens the corresponding file and puts the cursor in the correct location.
SHIFT+F7 Switches to Design view for the current document. Available only in Source view.
F12 Go to definition
CTRL+M, CTRL+A Collapses all regions on the page to show just the outermost groups in the hierarchy; typically the using/imports section and the namespace definition.
CTRL+M, CTRL+T Hides the selected HTML tag and displays an ellipsis (. . .) instead. You can view the complete tag as a tooltip by putting the mouse pointer over the ellipsis.
CTRL+M, CTRL+O Collapses existing regions to provide a high-level view of the types and members in the source file.
CTRL+K, CTRL+D or CTRL+E, D Formats the current document according to the indentation and code formatting settings specified on the Formatting pane in the Options dialog box, for the current language.
CTRL+L Cuts all selected lines, or the current line if nothing has been selected, to the Clipboard.
CTRL+SHIFT+L Deletes all selected lines, or the current line if no selection has been made.

No comments:

Post a Comment