
82
|
Chapter 3, Navigating Visual Studio
#17 Find Files Quickly
HACK
Add button in the Highlighted Files section. You are then prompted with
the Add Highlight Filter dialog, which is shown in Figure 3-10.
First you need to specify a description of the file type. In this example, I am
going to specify that all .cs files be highlighted with a particular color and
that my description will be “CS Files.” To apply this to files ending in the .cs
extension, you need to specify .cs in the Filter box. And last, you need to
choose what color to highlight the files with; this is done by clicking on the
color in the box filled with different colors. After you add this filter, all .cs
records will be highlighted with the selected color. This is a useful tech-
nique for spotting certain types of files in the search list.
Shortcut
During installation, VS File Finder also adds a command to Visual Studio.
You can use this command to assign a shortcut key to VS File Finder. Since
this add-in is about speed, it makes sense to be able to quickly launch the
add-in with a shortcut key, as opposed to using the mouse.
To create a shortcut for VS File Finder, you simply need to wire a shortcut key
to the VSFileFinder.Connect.ShowVSFileFinder command. For more informa-
tion on creating shortcuts, see “Create Your Own Shortcuts”
[Hack #24].
Figure 3-10. Add Highlight Filter dialog