如何从 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
How to exclude .svn directories from search in Eclipse?
提问by Richard Knop
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?
我想执行搜索但从搜索中排除所有 .svn 目录。我怎么能那样做?
By the way, I have the Subversive plugin installed in Eclipse, if it's needed.
顺便说一句,如果需要,我在 Eclipse 中安装了 Subversive 插件。
回答by prostynick
- Open project's Properties.
- Resource/Resource Filters
- Click Add... button.
- 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
- 打开项目的属性。
- 资源/资源过滤器
- 单击添加...按钮。
- 配置过滤器:
- 过滤器类型:排除所有
- 适用于:文件夹
- x 所有孩子(递归)
- 在组合框中保留所选位置(名称、匹配项)并输入
.svn
- 单击确定
It works OK for me.
它对我有用。
回答by Daniel Pe?alba
I think that the easiest way is creating a Working Set:
我认为最简单的方法是创建一个工作集:
- Open Search dialog (
Ctrl+h
) - Change search scope to
Working Set
- Click
Choose
... - Click
New
to create a new Working Setwith the what you want searched (alternatively you canAdd All
and then remove the ones you want filtered (the .svn dirs).
- 打开搜索对话框 (
Ctrl+h
) - 将搜索范围更改为
Working Set
- 点击
Choose
... - 单击
New
以使用您要搜索的内容创建新的工作集(或者,您可以Add All
然后删除要过滤的内容(.svn 目录)。
Hope it helps
希望能帮助到你