Click here to Skip to main content
15,868,142 members
Articles / Visual Studio

"Quick Find" A Better Way using Visual Studio Productivity Power Tools

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
25 Feb 2011CPOL4 min read 6.8K  
"Quick Find" - a better way using Visual Studio Productivity power tools

You might know about the Visual Studio 2010 Productivity Power Tools extension, which has several features on top of the Visual Studio's default IDE features. Recently, they released the new version which has some other benefits over the previous versions.

Image 1

In this post, I am going to discuss the Quick Find feature of the new Productivity Power Tools. Read the full post to know more about it.

Download

If you didn't install the Productivity Power Tools for Visual Studio 2010 or if you want to update your existing extension, you can download the latest version from here:

Image 2Image 3

If you are using Visual Studio 2010 SP1 and have the previous version already installed, first uninstall the previous version prior to update it.

Alternatively, you can download it from the Visual Studio Extension Manager.

Default Find Dialog

Let us start discussing our main topic, i.e., the "Quick Find" feature of the new Productivity Power Tools. Before jumping into the details, let us first discuss the default Visual Studio search dialog. There are plenty of options available inside Visual Studio. Among them, the Find and Replace dialog is most popular. If you press CTRL + F, it will open up the below dialog:

image

You can easily type there and search for the text. Right? So, what is the problem then? If you open the find dialog, it will come up on the screen and take a huge amount of space by hiding the actual editor text where the search is going to happen. When you press "Find Next", sometimes it becomes more annoying to drag the dialog in a different location to find the string.

You can easily overcome this situation by pressing Escape to hide the dialog after the first search and pressing F3 to locate the next string.

image

It actually blocks the UI, right? Now the new productivity power tools has a different search dialog which will overcome this issue. Let's talk about it now.

Quick Find Dialog

If you have already installed the latest version of Visual Studio Productivity Power Tools, press the key combination CTRL + F. You will find a small popup dialog at the top right corner of the editor window. Here, you can see the screenshot:

image

If you start typing inside the search box, you will notice that the search starts immediately in the editor window and all the strings matched with the entered string will get highlighted with a yellow mark.

image

If it finds a full match, it will show all the matching strings highlighted (as shown below):

image

You can easily customize the search by clicking the arrow head just beside the search box. It will open a dropdown where you can set the search settings.

image

Clicking on the "Advanced Options..." will popup the original Find dialog into the screen.

image

There, you can actually customize it more to search in Current Document, All Opened Document, Current Project or Entire Solution.

Issue Finding the New Quick Find?

There might be three reasons, if you don't find the "Quick Find" dialog inside the Visual Studio IDE and those will be:

  1. You didn't install the Productivity Power Tools for Visual Studio 2010 IDE
  2. You don't have the latest version of the Extension
  3. The "Quick Find" option is not enabled inside your Visual Studio 2010 IDE

For the first two reasons, download and install/upgrade the extension from the above mentioned URL. If you already installed the latest version and still facing the same issue, the option might not be enabled inside the IDE settings.

In the third case, go to Tools -> Options (as shown below):

image

This will open up the Options dialog. From the left pane, select the "Productivity Power Tools" as shown in the below screenshot. In the right side, you will see a bunch of options available. Find out the "Quick Find" option. In this case, you will see it as "OFF", means this option is disabled.

image

To enable it, click on the toggle button "OFF", it will become "ON". Click "OK" to continue. This will re-enable the "Quick Find" dialog.

image

You must need to restart the Visual Studio for the changes to take effect. After restart, try pressing CTRL + F, you will see the new Quick Find dialog in the screen.

Similarly, if you want to do Find and Replace, you can see it here too. Press CTRL + H to open up the Quick Find dialog which has the replace box too. Have a look into the below snapshot:

image

Hope this information will help you to do your daily find and replace operation in a new way and minimize the effort with a proper way of search. You can find all of my posts on Productivity Power Tools here.

Happy coding... Thumbs up

This article was originally posted at http://www.kunal-chowdhury.com/feeds/posts/default

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
India India

Kunal Chowdhury is a former Microsoft "Windows Platform Development" MVP (Most Valuable Professional, 2010 - 2018), a Codeproject Mentor, Speaker in various Microsoft events, Author, passionate Blogger and a Senior Technical Lead by profession.

He is currently working in an MNC located in India. He has a very good skill over XAML, C#, Silverlight, Windows Phone, WPF and Windows app development. He posts his findings, articles, tutorials in his technical blog (www.kunal-chowdhury.com) and CodeProject.


Books authored:


Connect with Kunal on:





Comments and Discussions

 
-- There are no messages in this forum --