Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know… The power of incremental searching

I didn’t know about incremental searching until someone showed me.  This is a really powerful searching tool for the current document. 

 

To use

1.      Press Ctrl+I (or whatever Edit.IncrementalSearch is bound to)

2.      Start typing the text you’re searching for (note: at this point, you’ll see the cursor jump to the next match, highlighting the current search string)

3.      If you want to move to the next occurrence of the search string, press Ctrl-I again

4.      If you want to search backward, press Ctrl-Shift-I

5.      To exit, press ESC

 

Happy Editing!

 

Posted: Thursday, March 17, 2005 1:54 PM by saraford

Comments

Mike Dunn said:

Ctrl+I rocks but in VC 7.1 there's a usability problem with it - Ctrl+I can be case-sensitive but that fact isn't indicated anywhere in the UI. (In VC 6 it was indicated in the status bar and you could toggle it with Ctrl+C)

I hope you plan on mentioning Ctrl+F3, which is another nice quick-search command. :)
# March 17, 2005 3:11 PM

Bjoern Graf said:

Nope, I didn't know that. Nice tip, thanks :]
# March 17, 2005 3:20 PM

saraford said:

Mike: Yep, there used to be that ability, but i believe it was removed in either 7.0 or 7.1. You should feel free to log a MSDN Product Feedback bug or suggestion about it, especially since it is a usability issue for you.

Oh, and thanks for next week's tip =)

thanks,
-sara
# March 17, 2005 5:07 PM

Jeff Atwood said:

As Chris Sells once said, CTRL+I is 'pure sex'!

This probably goes without saying, but programmers don't get out much.
# March 17, 2005 8:41 PM

al havrilla said:

thanks .. didn't know about Ctrl-I .. its handy
# March 19, 2005 5:43 AM

Yanni Talyor said:

Now only if it would work like the Firefox search feature.
# March 19, 2005 5:17 PM

Daniel Moth said:

Blog link of the week 11
# March 20, 2005 5:02 PM

montaque said:

Great. useful tip
# March 22, 2005 12:13 AM

Subrahmanyam K said:

Nice feature!!
Thanks
# December 23, 2005 12:27 AM

Simon Perkins said:

Being a long time emacs user I couldn't live without some form of incremental search.

FWIW, the case sensitivity of the incremental search is determined by the "Match Case" checkbox in the full "Find" dialog. It would certainly be nice to have some way to change it on the fly though...
# January 29, 2006 10:06 PM
New Comments to this post are disabled
Page view tracker