Welcome to MSDN Blogs Sign in | Join | Help

Fun with the Visual Studio Find Combo Box

It's interesting to note all the power of the find combo box in the Visual Studio command bar.  It's easily one of the more useful controls I've ever used, yet it just sits there all quiet and unassuming.  I've run into a lot of people who know one of two tricks that can be done in this box, so I thought I'd summarize them here.

Of course there's the basic find functionality:

  • Find a string -- type the string and press Enter
  • Find the next occurance of the string -- press Enter again

But then things get a little more interesting:

  • Goto a line -- type the line number and press Ctrl + G
  • Goto a file (either in your project or on the INCLUDE path) -- type the name of the file and press Ctrl + Shift + G
  • Set a breakpoint on a function -- type the name of the function and press F9
  • Get help -- type the keyword you want help on and press F1

And my personal favorite:

  • Mini command window -- If you type > as the first character in the combo box, it will turn into a mini command window, complete with Intellisense!   For instance, you could use the > kb command while debugging to get a stack trace.  Or you could use the > nav http://msdn.microsoft.com command to go to MSDN.

Updated: To clear up confusion, I'm not talking about the combo box in the find dialog, but rather the combo box on the toolbar of VS itself.  As one of the comments on this post points out, the keyboard shortcut to get there is Ctrl + D.

Published Friday, February 27, 2004 3:57 PM by shawnfa
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Fun with the Visual Studio Find Combo Box

Friday, February 27, 2004 5:30 PM by Anonymous Coward
It took me a while to realize what you were talking about. This is the combo box that lives next to the toolbar buttons (and is part of the Standard toolbar). It's the 2nd combo box.

At first I thought you were referring to the Combo Box in the find dialog, but it obviously doesn't have these behaviors you described.

With the information you pointed out I only had one remaining question - how do you select the combo box via the keyboard? So I looked it up. For others who are wondering the answer is Ctrl-D. Thanks for the tips!

# re: Fun with the Visual Studio Find Combo Box

Friday, February 27, 2004 5:41 PM by Shawn
Right you are -- the one on the toolbar. I'll update the original post to avoid more confusion -- Thanks!

-Shawn

# re: Fun with the Visual Studio Find Combo Box

Tuesday, May 18, 2004 4:07 AM by Johan Feeler
Is there a list of the commands available in intellisense mode i.e kb etc

# re: Fun with the Visual Studio Find Combo Box

Wednesday, May 19, 2004 3:19 PM by Shawn
Hi Johan,

You can always get a list of the commands that currently work in your Visual Studio session by issuing an "> alias" command. For a list of predefined commands, check out "Pre-defined Visual Studio Command Aliases" on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxgrfpredefinedcommandlinealiases.asp

-Shawn

# re: Fun with the Visual Studio Find Combo Box

Wednesday, April 05, 2006 9:01 AM by Mark
You may call this fun, I call it "Easter eggs".  Why would they build this capability into a widget and not explain it in the documentation?  Why wouldn't they give some indication in the displayed dialog box that further capabilities exist?

No wonder these programs are so obscenely bloated  and slow to run.  They are doing a zillion extra little things that nobody knows about or cares about rather than doing their main job well.

Imagine where the world of computing would be if it hadn't been for Microsoft!  Computers would actually save time, like they were intended to.

# Ctrl+D but also Ctrl+/

Monday, June 19, 2006 5:32 AM by vedala
The shortcut Ctrl+D takes you there in find mode. Shortcut Ctrl+/ takes you there in command mode ('>' prepended)

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker