Solution for: #21: Eclipse: exclude directories from file searches
Use an Eclipse working set
- yliu on February 21, 2009, 09:26 AM UTC
In the Search box, there's an option to search within the "Working Set", which allows you to pick the directories and files that you want searched. You define a working set by selecting the Choose... button, hitting New, and then picking the directories you want included within the new dialog box (three levels of dialogs...what the hell, Eclipse?). You must then encounter additional mental friction to explicitly name your working set, and then finally choose "Working Set" in the Scope field of the Search box.
All of this to exclude a damned directory.
All of this to exclude a damned directory.
References used:
Eclipse exclude folders from search - Stack Overflow
( http://stackoverflow.com/questions/443169/eclipse-exclude-folders-from-search ) - found by yliu on February 21, 2009, 09:19 AM UTC
Comments
Working set is a good solution if you want to search only in certain projects in your workspace. My scenario is I want to do a search in whole workspace and exclude all .svn folders .... Any ideas on how to achieve this. I am aware of few SVN Plug-in`s that could help .. If there is any other way please elaborate.
— Anubhav on August 04, 2009, 03:46 PM UTC@Anubhav Hm, I've never had that problem. As far as I know, installing a plug-in like Subclipse would automatically exclude .svn directories from searches. Other than that, I'm not sure.
— yiming on August 04, 2009, 03:56 PM UTC