Visual Studio 2012 New Features: Quick Launch

Tips Search

Visual Studio 2012 New Features: Quick Launch

  • Comments 4

In the past, finding things deep in the IDE has been a challenge. Visual Studio 2012 introduces search abilities at virtually every level of the product. Perhaps the biggest change is the introduction of Quick Launch (CTRL + Q) which specifically addresses how to dig inside Visual Studio to find features you need. Let’s take a look.

 

Quick Launch: Basic Use

You can find Quick Launch in the upper right corner of the IDE:

image

 

The most basic scenario for using Quick Launch is finding an item that you have forgotten (or don’t know) the location of. Let’s say you are interested in something deep in the menu system like viewing your white space. You know what it’s called but can’t remember where it is at. Just press CTRL + Q and enter the word white:

image

 

All searches are contains operations so the results will show anything that has the word white anywhere in it. The results are grouped into categories and you simply either select the item from the list using your keyboard, mouse or, if there is a keyboard shortcut listed, take advantage of the shortcut. In this case, you could press CTRL+R, CTRL+W to show the white space and then go on with your work.

 

 

Categories

There are four categories that your results will fall into when using Quick Launch. Let’s take a look at each of these categories.

 

Most Recently Used

Pretty self-explanatory; this category is at the top of the dialog and will show up to the last 5 most recent items that match the current search criteria. Pay attention to the last part of that sentence. Only if it (a) was used by you before from this dialog and (b) matches the current search criteria will an item show up in the MRU list.

You can search just your Most Recently Used items by preceding any search with @MRU (case doesn’t matter):

image

 

Menus

This obviously refers to menu items. So if I type in option for a search term the menus section shows menu items that contain the term:

image

 

You can filter results to show only commands by preceding any search with @MENU (case doesn’t matter):

image

 

Options

The Options category does what you might expect--it shows items that can be found by going to Tools | Options on the Menu Bar:

image

 

As with the other categories, you can filter your search to just options by preceding any search with @OPT:

image

 

The only real limitation to keep in mind is this type of search doesn’t go beyond two levels deep and the description. For example, if I type the word document here is the result in the options category:

image

 

Which corresponds to Tools | Options | Environment | Documents (and Tools | Options | Text Editor | C# as well):

image

Notice the search went two levels deep (Environment | Documents) but didn’t list out the items to the right that contain our search term in it.

 

Open Documents

This category is somewhat interesting. It searches file names and paths of open documents for the search criteria but not the text inside the files themselves. There are plenty of tools that can be used to search inside files and the context for Quick Launch is at a higher level. This feature is useful for finding a file when you have several files open:

image

 

As with the other categories it, too, can be filtered to search just show open files by putting @DOC at the front of your search:

image

 

 

Turning Categories Off

You can selectively turn off categories you don’t want to see by typing quick  in Quick Launch and selecting the result in Options:

image

Note: For the old school folks this can be found at Tools | Options | Environment | Quick Launch

 

Then deselect the special search providers you don’t want:

image

The next time you run a search it will not show the categories you have turned off in your result set.

 

 

Large Result Sets

As you may have noticed when playing with this feature it doesn’t show all the items in the initial results but does have a number indicating how many items it found:

image

 

Clearly not all 123 items in the Options are being shown but notice the message at the bottom of the list. If the results are too large to show we can just press CTRL + Q to show them all. Additionally, if you continue to press CTRL + Q it will cycle through showing all items in all categories and filtering by each category:

image

 

 

Search Results from Previous Search

By default the search term you use is not persisted between search sessions. So if you search on something:

image

 

Then place move the cursor outside the Quick Launch area and go back the search term has been cleared from the area:

image

 

Personally, this is very annoying to me and thankfully the VS team has a fix. Just go to the Quick Launch in Options area:

image

 

Then select Show Search Results From Previous Search When Quick Launch Is Activated option:

image

The next time you run a search, leave the Quick Launch area, and come back it will retain the search term last used and show you the search results as well.

 

 

Turning It Off

If for some insane reason you don’t like the Quick Launch feature, you can always turn it off by going to Quick Launch in the options:

image

 

Then deselecting the Enable Quick Launch option:

image

 

This will remove the Quick Launch area from the IDE:

image

To bring it back just go to Tools | Options | Environment | Quick Launch and select Enable Quick Launch.

 

 

Finally

I absolutely love this feature! My passion is around helping people be more productive in the IDE and I think Quick Launch is probably one of the biggest steps forward for discovery of VS features that I have ever seen. I’ve been using it for a long time and am at the point now where I can’t imagine not having it. I hope you enjoy it as much as I do.

  • I tried searching for "disable all-caps menus" but nothing came up!

  • Jon :)

    You need to read my blog more often.  Here is the article on the uppercase menu issue:

    blogs.msdn.com/.../turn-off-the-uppercase-menu-in-visual-studio-2012.aspx

    Z

  • This feature is largely useless if you can't use it open files in your solution.

  • An option to re-order these would be a nice touch.  I love being able to go to directly to an open document, but when the document name also matches a bunch of options, I have to use too many keystrokes to get to my document.  My other option, which I'm using, is to disable everything except MRU and Documents.

Page 1 of 1 (4 items)
Leave a Comment
  • Please add 8 and 1 and type the answer here:
  • Post