Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you exclude .svn directories from search in Visual Studio?

I have to "look in:" a subfolder of the project because the entire project is very large and takes too long to search through.

I also have AnkhSVN installed and wonder if a setting in the plugin could help too.

like image 669
conical Avatar asked Feb 16 '11 20:02

conical


2 Answers

If you use "Find in files" instead of the standard search, you can search a subfolder for file types you specify.

However, it's a lot easier to perform this kind of task using the Ultrafind add-on (http://visualstudiogallery.msdn.microsoft.com/9fa9fdd7-1c06-45e3-a9f3-0381caab8f94) which you can use to exclude specific file patterns.

like image 72
Olaf Avatar answered Sep 24 '22 17:09

Olaf


Sadly, it seems that despite all the wonderful functionality of Visual Studio, the easiest way to omit .svn directories from searches is to use Windows Explorer to navigate to the .svn directory, right click the folder, go to Properties, and click the Hidden checkbox under Properties.

If you then re-open your Visual Studio solution, it should keep those files out of the searches.

like image 40
dougczar Avatar answered Sep 23 '22 17:09

dougczar