Normal Search:
To search for a particular text, usually you have to press CTRL+F and type the complete string and the browse through the results.
Disadvantage of this normal search :
- It's a dialog.
- There's no indication whether your search term matches anything until you type the complete search term and press return or click Find.
- If you just mistyped a search term in a 5 megabyte text file, you have to keep waiting for the search to complete.
Incremental search:
Incremental search is the one that we can find in latest browsers like Firefox, chrome. Visual studio also has the search functionality like Firefox’s incremental search.
Press the short cut CTRL+I, and start typing the text you are looking for. The code editor will move around as you type in and find any instance of the text you type in.
CTRL + I initiates the search in the forward direction from the current location (top to bottom).
CTRL+Shift+I reverses the incremental search, or switches a forward search to a reverse search (Bottom to top).
Incremental search can also be initiated using the menu, Edit -> Advanced -> Incremental Search.
Case Sensitive Incremental Search :
Incremental search also remebers the Match case option in the Normal find dialog.
Shortcuts:
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
Advantages:
- There are no dialogs in incremental search interface, where the interactive search indicator is a cursor position change after you press CTRL+I and start typing the keyword.
- Less time required to search. The search activates as soon as you type the first character. You know immediately when you've got a good the correct match and you can stop typing.
- If you mistype something, you'll know that immediately, too. Press backspace to correct the typo and you're back to the previous match.
Disadvantages:
- Incremental search doesn't look for text in hidden regions, but a regular search does it.
- You cannot use wildcards or regular expressions in search strings for incremental searches.
fd8eac71-4989-4b2b-a639-bdfdb855ff57|1|5.0
English, Technical, .Net
visual studio tips, incremental search, firefox type search in visual studio