tip and trick‎ > ‎

Visual Studio shortcut keys - Part 2 (Text navigation)

posted Feb 15, 2012, 2:03 AM by mb s

Text navigation

The 'must-know' shortcut keys are  highlighted .
Shortcut Description
Left Arrow 
Moves the cursor one character to the left
Right Arrow 
Moves the cursor one character to the right
Down Arrow 
Moves the cursor down one line
Up Arrow 
Moves the cursor up one line
Page Down 
Scrolls down one screen in the editor window
Page Up 
Scrolls up one screen in the editor window
End 
Moves the cursor to the end of the current line
Home
Moves the cursor to the beginning of the line. If you press Home when the cursor is already at the start of the line, it will toggle the cursor between the first non-whitespace character and the real start of the line
Ctrl-End 
Moves the cursor to the end of the document
Ctrl-Home 
Moves the cursor to the start of the document
Ctrl-G
Displays the Go to Line dialog. If the debugger is running, the dialog also lets you specify addresses or function names to go to
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-N
Moves to the next bookmark in the document
Ctrl-K, Ctrl-P
Moves to the previous bookmark
Ctrl-K, Ctrl-I
Displays Quick Info, based on the current language
Ctrl-Down Arrow 
Scrolls text down one line but does not move the cursor. This is useful for scrolling more text into view without losing your place. Available only in text editors
Ctrl-Up Arrow 
Scrolls text up one line but does not move the cursor. Available only in text editors
Ctrl-Right Arrow 
Moves the cursor one word to the right
Ctrl-Left Arrow 
Moves the cursor one word to the left
Ctrl-Shift-1
Navigates to the next definition, declaration, or reference of an item. Available in the object browser and Class View window. Also available in source editing windows if you have already used the Edit.GoToReference (Shift-F12) shortcut
Ctrl-Shift-2
Navigates to the previous definition, declaration, or reference of an item

Source : DoFactory


Comments