Make Visual Studio search the default files for the project directory?

I have many different branches / checkouts of the same project code on my dev machine. Each of them is pretty much the same except for the fixes or maintenance patch improvements that I work on on every project.

The problem occurs when I use Find in Files inside Visual Studio to search my code. VS2005 keeps the last search directory that was used in the Find in Files dialog ... this may or may not be the directory of the projects I'm working on. Because my projects are so similar, it's easy to accidentally search for a similar project, change some code, and only later realize that I edited the wrong project. (Argh !!)

Is there a way for VS to make its default search in files in the project directory? Obviously setting properties would be great, but an add-in would be great too.

+1


source to share


2 answers


This annoys me too. But in the "Look In:" dropdown in the dlg files, you will find items for the solution and project. I think this should work for you.



+1


source


In VS2008, with no files open, when I select Current Project, it looks for whatever project is currently selected in Solution Explorer. When I switch between files in different projects, it correctly looks for the project of the currently selected file. I don't see any options for changing this behavior.



-1


source







All Articles