Using Incremental Search

Versions Supported:  2008,2010

Keyboard Shortcut:  CTRL + I

Menu Command:  Edit -> Advanced -> Incremental Search

Video:  http://vstricks.com/tricks/001/

Publish Date:  1/1/2010

Tip Code:  vstipFind0001

 

Incremental search is a powerful search to use when you want to keep both your focus and your cursor in the editor when searching in the current document. It is powerful because it allows you to keep typing, meaning the search is driven by keystrokes. And you don't need to interact with any UI.

 

To conduct an incremental search, follow these steps:

  1. Press Ctrl+I.
  2. Start typing the text you are searching for.  You'll see the cursor jump to the first match, highlighting the current search string:
    image
  3. If you look in the lower-left corner of your screen you will see an indication that you are doing an Incremental Search:
    image
  4. Press Ctrl+I again to jump to the next occurrence of the search string:
    image

 

Here are all the options you can leverage while in this mode:

To

Use

Move to the next match in the file

CTRL+I

Reverse the direction of the search

CTRL+SHIFT+I

Remove a character from the search string

BACKSPACE

Stop the incremental search

ESC