Visual C# Development Environment
Text Navigation Shortcut Keys, Visual C# Scheme

The following shortcut key combinations can be used in text editors to move throughout an open document.

NoteNote:

When you select Visual C# Development Settings in the Import and Export Settings Wizard, the Visual C# 2005 keyboard mapping scheme is applied. Visual C# 2005 is the current keyboard mapping scheme. This is the keyboard mapping scheme that is applied to the integrated development environment (IDE) at initial startup. For more information, see How to: Change Select Settings.

To switch to the Visual C# keyboard mapping scheme

  1. On the Tools menu, click Options.

  2. Expand Environment, and then click Keyboard.

  3. Select Visual C# 2005 from the Apply the following application keyboard mapping scheme drop-down list.

Command Name

Shortcut Keys

Description

Edit.CharLeft

LEFT ARROW

Moves the cursor one character to the left.

Edit.CharRight

RIGHT ARROW

Moves the cursor one character to the right.

Edit.ClearBookmarks

CTRL + B, CTRL + C

Removes all unnamed bookmarks in the current document.

Edit.DocumentEnd

CTRL + END

Moves the cursor to the last line of the document.

Edit.DocumentStart

CTRL + HOME

Moves the cursor to the first line of the document.

Edit.GoTo

CTRL + G

Displays the Go To Line dialog box.

Edit.GoToBrace

CTRL + ]

Moves the pointer location to the matching brace in the source file.

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. Subsequent invocations will move to the next item in the list.

Edit.LineDown

DOWN ARROW

Moves the cursor down one line.

Edit.LineEnd

END

Moves the cursor to the end of the current line.

Edit.LineStart

HOME

Moves the cursor to the start of the line.

Edit.LineUp

UP ARROW

Moves the cursor up one line.

Edit.NextBookmark

CTRL + B, CTRL + N

Moves the cursor to the location of the next bookmark.

Edit.NextError

CTRL + SHIFT + F12

Moves to the next error entry in the Error List window, which automatically scrolls to the affected section of text in the editor.

Edit.PageDown

PAGE DOWN

Scrolls down one screen in the editor window.

Edit.PageUp

PAGE UP

Scrolls up one screen in the editor window.

Edit.PreviousBookmark

CTRL + B, CTRL + P

Moves the cursor to the location of the previous bookmark.

Edit.QuickInfo

CTRL + K, CTRL + I

Displays the complete declaration for the specified identifier in your code in a Quick Info tool tip.

Edit.ScrollLineDown

CTRL + DOWN ARROW

Scrolls text down one line. Available in text editors only.

Edit.ScrollLineUp

CTRL + UP ARROW

Scrolls text up one line. Available in text editors only.

Edit.ToggleBookmark

CTRL + K, CTRL + K

- or -

CTRL + B, CTRL + T

Sets or removes a bookmark at the current line.

Edit.ViewBottom

CTRL + PAGE DOWN

Moves to the last visible line of the active window.

Edit.ViewTop

CTRL + PAGE UP

Moves to the first visible line of the active window.

Edit.WordNext

CTRL + RIGHT ARROW

Moves the cursor to the right one word.

Edit.WordPrevious

CTRL + LEFT ARROW

Moves the cursor to the left one word.

View.BrowseNext

CTRL + SHIFT + 1

Moves to the next definition, declaration, or reference of an item. Available in the Object Browser and Class View window.

View.BrowsePrevious

CTRL + SHIFT + 2

Moves to the previous definition, declaration, or reference of an item. Available in the Object Browser and Class View window.

View.NavigateBackward

CTRL + MINUS SIGN (-)

Moves to the previously browsed line of code.

View.NavigateForward

CTRL + SHIFT + MINUS SIGN (-)

Moves to the next browsed line of code.

View.PopBrowseContext

CTRL + SHIFT + 8

Moves to the previous item called in code in the current file. Uses the Go To Definition navigation stack.

View.ForwardBrowseContext

CTRL + SHIFT + 7

Moves to the next item called in code in the current file. Uses the Go To Definition navigation stack.