How to exclude .svn directories from search in Eclipse?

EclipseEclipse Plugin

Eclipse Problem Overview


> Possible Duplicate:
> How can I make Eclipse file search not include svn directories?

I would like to perform a search but exclude all .svn directories from the search. How could I do that?

By the way, I have the Subversive plugin installed in Eclipse, if it's needed.

Eclipse Solutions


Solution 1 - Eclipse

  1. Open project's Properties.
  2. Resource/Resource Filters
  3. Click Add... button.
  4. Configure filter:
  • Filter type: Exclude all
  • Applies to: Folders
  • x All children (recursive)
  • Leave selected positions in combobox (Name, matches) and type .svn
  • Click OK

It works OK for me.

Solution 2 - Eclipse

I think that the easiest way is creating a Working Set:

  1. Open Search dialog (Ctrl+h)
  2. Change search scope to Working Set
  3. Click Choose ...
  4. Click New to create a new Working Set with the what you want searched (alternatively you can Add All and then remove the ones you want filtered (the .svn dirs).

Hope it helps

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRichard KnopView Question on Stackoverflow
Solution 1 - EclipseprostynickView Answer on Stackoverflow
Solution 2 - EclipseDaniel PeñalbaView Answer on Stackoverflow