We all are familiar with visual studio shortcut keys, But not all the shortcut keys. I have listed few usefull shortcut keys that we don't use frequently.
|
Shortcut Key
|
Functionality
|
|
Ctrl-W
|
Selects the word containing the cursor or the word to the right of the cursor
|
|
Ctrl-=
|
Selects from the current location in the editor back to the previous location in the navigation history
|
|
F7
|
Switches from the design view to the code view in the editor
|
|
Shift-F7
|
Switches from the code view to the design view in the editor
|
|
Shift-F12
|
Finds a reference to the selected item or the item under the cursor (Find all references of the current item)
|
|
Ctrl-G
|
Displays the Go to Line dialog. If in TFS work item, it displays go to work item dialog.
|
|
Ctrl-]
|
Moves the cursor to the matching brace in the document. If the cursor is on an opening brace, this will move to the corresponding closing brace and vice versa
|
|
Ctrl-K, Ctrl-I
|
Shows a quick description about whatever object the cursor is currently resting on
|
|
Ctrl-Down Arrow
|
Scrolls text down one line without moving the cursor. This is useful for scrolling without losing your place.
|
|
Ctrl-Up Arrow
|
Scrolls text up one line without moving the cursor. This is useful for scrolling without losing your place.
|
|
Ctrl-K, Ctrl-C
|
Marks the current line or selected lines of code as a comment.
|
|
Ctrl-K, Ctrl-U
|
Uncomments the line/ or selected lines if commented.
|
|
Ctrl-K, Ctrl-\
|
Removes all the whitespaces in the selection or removes whitespace adjacent to the cursor if there is no selection.
|
|
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
|
|
Ctrl-Enter
|
Inserts a blank line above the cursor
|
|
Ctrl-Shift-Enter
|
Inserts a blank line below the cursor
|
|
Ctrl-Shift-Spacebar
|
Displays a tooltip that contains information for the current parameter, based on the current language
|
fec2d982-95f4-4538-ae7a-519a9406d035|0|.0
.Net Tips, Technical