如何从 Eclipse 中的搜索中排除 .svn 目录?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3985518/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:13:18  来源:igfitidea点击:

How to exclude .svn directories from search in Eclipse?

eclipseeclipse-plugin

提问by Richard Knop

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

可能的重复:
如何使 Eclipse 文件搜索不包括 svn 目录?

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

我想执行搜索但从搜索中排除所有 .svn 目录。我怎么能那样做?

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

顺便说一句,如果需要,我在 Eclipse 中安装了 Subversive 插件。

回答by prostynick

  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
  1. 打开项目的属性。
  2. 资源/资源过滤器
  3. 单击添加...按钮。
  4. 配置过滤器:
    • 过滤器类型:排除所有
    • 适用于:文件夹
    • x 所有孩子(递归)
    • 在组合框中保留所选位置(名称、匹配项)并输入 .svn
    • 单击确定

It works OK for me.

它对我有用。

回答by Daniel Pe?alba

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 Newto create a new Working Setwith the what you want searched (alternatively you can Add Alland then remove the ones you want filtered (the .svn dirs).
  1. 打开搜索对话框 ( Ctrl+h)
  2. 将搜索范围更改为 Working Set
  3. 点击Choose...
  4. 单击New以使用您要搜索的内容创建新的工作集(或者,您可以Add All然后删除要过滤的内容(.svn 目录)。

Hope it helps

希望能帮助到你