Search and Replace Shortcut Keys, Visual C# Scheme

The following shortcut key combinations can be used to search for text in a single file, to search for text in multiple files, and to search for objects and members.

Note

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.Find

CTRL + F

Displays the Quick tab of the Find and Replace dialog box.

Edit.FindAllReferences

CTRL + K, R or

SHIFT + F12

Displays the list of all references for the selected symbol.

Edit.FindInFiles

CTRL + SHIFT + F

Displays the In Files tab of the Find and Replace dialog box.

Edit.FindNext

F3

Finds the next occurrence of the previous search text.

Edit.FindNextSelected

CTRL + F3

Finds the next occurrence of the currently selected text in the document.

Edit.FindPrevious

SHIFT + F3

Finds the previous occurrence of the search text.

Edit.FindPreviousSelected

CTRL + SHIFT + F3

Finds the previous occurrence of the currently selected text, or the word at the cursor.

Edit.GoToFindCombo

CTRL + /

Puts the cursor in the Find/Command box on the Standard toolbar.

Edit.IncrementalSearch

CTRL + I

Activates incremental search. If incremental search is on, but no input is passed, the previous search query is used. If search input has been found, next invocation searches for the next occurrence of the input text.

Edit.Replace

CTRL + H

Displays the replace options in the Quick tab of the Find and Replace dialog box.

Edit.ReplaceInFiles

CTRL + SHIFT + H

Displays the replace options on the In Files tab of the Find and Replace dialog box.

Edit.ReverseIncrementalSearch

CTRL + SHIFT + I

Changes the direction of incremental search to start at the bottom of the file and progress toward the top.

Edit.StopSearch

ALT + F3, S

Stops the current Find in Files operation.

View.FindSymbolResults

CTRL + W, CTRL + Q

Displays the Find Symbol Results window, which displays matches for symbols searches.

See Also

Concepts

Visual C# Default Shortcut Keys