如何使Eclipse文件搜索不包含svn目录?

时间:2021-05-22 20:47:58

When I do a file search on eclipse it includes the .svn directories by default. I tried excluding them from the build path but they still appear on file search results.

当我在eclipse上进行文件搜索时,它默认包含.svn目录。我尝试将它们从构建路径中排除,但它们仍然出现在文件搜索结果中。

9 个解决方案

#1


102  

Spaceman is right. With Helios, choose Project -> Properties -> Resource -> Resource Filters and then add an exclude filter for type "Folder" with name .svn.

太空人是对的。使用Helios,选择Project - > Properties - > Resource - > Resource Filters,然后为名称为.svn的类型“Folder”添加排除过滤器。

#2


8  

If you install the subclipse plugin then it automatically excludes the .svn directories (plus provides some other cool stuff in the IDE).

如果您安装了subclipse插件,那么它会自动排除.svn目录(另外还提供IDE中的其他一些很酷的东西)。

http://subclipse.tigris.org/

If it does not work, simply restart Eclipse (sometimes it's needed on a fresh checkout)

如果它不起作用,只需重启Eclipse(有时需要重新结账)

#3


8  

Following up on Mark Ingram's excellent answer, simply installing the plugin won't get you there -- You'll still need to Share your project in order for the automatic Search filtering to take hold. After you set up the SVN repository location from within the Subeclipse view you may Share your project by doing the following:

按照Mark Ingram的优秀答案,只需安装插件就不会让你 - 你仍然需要共享你的项目才能使自动搜索过滤成为可能。在Subeclipse视图中设置SVN存储库位置后,您可以通过执行以下操作来共享项目:

  1. From within Package Explorer, right-click the project name
  2. 在Package Explorer中,右键单击项目名称

  3. Select the Team context menu option and then Share Project....
  4. 选择Team上下文菜单选项,然后选择Share Project ....

  5. Step trough the wizard to tie your project to its location in the svn repository
  6. 步骤通过向导将项目绑定到svn存储库中的位置

  7. Once you complete that and the workspace rebuilds you are all set to enjoy filtered search.
  8. 一旦完成并重建工作区,您就可以享受过滤搜索了。

#4


3  

Excluding the .svn folders by making them derived stops then appearing in the search results, see here.

通过使.svn文件夹导出停止然后出现在搜索结果中来排除.svn文件夹,请参阅此处。

You have to do it manually for each folder, if you have a lot of .svn folders then it's not ideal.

您必须手动为每个文件夹执行此操作,如果您有很多.svn文件夹,那么它并不理想。

#5


2  

If you are gonig down the plugin route, I tend to prefer subversive over subclipse.

如果你对插件路线感兴趣,我倾向于更喜欢颠覆性的subclipse。

#6


0  

Ah - OK. I don't use SubVersion per se, but would this be of any use? It claims it can do what you want...

喔好吧。我本身不使用SubVersion,但这会有用吗?它声称它可以做你想要的......

#7


0  

Eclipse import would also contain file of type .java.svn-base, so its better to give as in below image

Eclipse导入还包含.java.svn-base类型的文件,因此最好如下图所示

[[1]: https://i.stack.imgur.com/szDxP.png][1]

#8


-1  

You can off course also select ALL the file name patterns to include in the file search dialog

您也可以选择所有文件名模式以包含在文件搜索对话框中

#9


-3  

Click on the drop-down triangle in the top-right corner of the Navigator and choose "Filters..".

单击导航器右上角的下拉三角形,然后选择“过滤器..”。

By default Eclipse only offers you ".class" and ".".

默认情况下,Eclipse只为您提供“.class”和“。”。

If you choose ".*" you'll hide .svn files. Obviously all other .something files will also be hidden.

如果选择“。*”,则会隐藏.svn文件。显然,所有其他.something文件也将被隐藏。

#1


102  

Spaceman is right. With Helios, choose Project -> Properties -> Resource -> Resource Filters and then add an exclude filter for type "Folder" with name .svn.

太空人是对的。使用Helios,选择Project - > Properties - > Resource - > Resource Filters,然后为名称为.svn的类型“Folder”添加排除过滤器。

#2


8  

If you install the subclipse plugin then it automatically excludes the .svn directories (plus provides some other cool stuff in the IDE).

如果您安装了subclipse插件,那么它会自动排除.svn目录(另外还提供IDE中的其他一些很酷的东西)。

http://subclipse.tigris.org/

If it does not work, simply restart Eclipse (sometimes it's needed on a fresh checkout)

如果它不起作用,只需重启Eclipse(有时需要重新结账)

#3


8  

Following up on Mark Ingram's excellent answer, simply installing the plugin won't get you there -- You'll still need to Share your project in order for the automatic Search filtering to take hold. After you set up the SVN repository location from within the Subeclipse view you may Share your project by doing the following:

按照Mark Ingram的优秀答案,只需安装插件就不会让你 - 你仍然需要共享你的项目才能使自动搜索过滤成为可能。在Subeclipse视图中设置SVN存储库位置后,您可以通过执行以下操作来共享项目:

  1. From within Package Explorer, right-click the project name
  2. 在Package Explorer中,右键单击项目名称

  3. Select the Team context menu option and then Share Project....
  4. 选择Team上下文菜单选项,然后选择Share Project ....

  5. Step trough the wizard to tie your project to its location in the svn repository
  6. 步骤通过向导将项目绑定到svn存储库中的位置

  7. Once you complete that and the workspace rebuilds you are all set to enjoy filtered search.
  8. 一旦完成并重建工作区,您就可以享受过滤搜索了。

#4


3  

Excluding the .svn folders by making them derived stops then appearing in the search results, see here.

通过使.svn文件夹导出停止然后出现在搜索结果中来排除.svn文件夹,请参阅此处。

You have to do it manually for each folder, if you have a lot of .svn folders then it's not ideal.

您必须手动为每个文件夹执行此操作,如果您有很多.svn文件夹,那么它并不理想。

#5


2  

If you are gonig down the plugin route, I tend to prefer subversive over subclipse.

如果你对插件路线感兴趣,我倾向于更喜欢颠覆性的subclipse。

#6


0  

Ah - OK. I don't use SubVersion per se, but would this be of any use? It claims it can do what you want...

喔好吧。我本身不使用SubVersion,但这会有用吗?它声称它可以做你想要的......

#7


0  

Eclipse import would also contain file of type .java.svn-base, so its better to give as in below image

Eclipse导入还包含.java.svn-base类型的文件,因此最好如下图所示

[[1]: https://i.stack.imgur.com/szDxP.png][1]

#8


-1  

You can off course also select ALL the file name patterns to include in the file search dialog

您也可以选择所有文件名模式以包含在文件搜索对话框中

#9


-3  

Click on the drop-down triangle in the top-right corner of the Navigator and choose "Filters..".

单击导航器右上角的下拉三角形,然后选择“过滤器..”。

By default Eclipse only offers you ".class" and ".".

默认情况下,Eclipse只为您提供“.class”和“。”。

If you choose ".*" you'll hide .svn files. Obviously all other .something files will also be hidden.

如果选择“。*”,则会隐藏.svn文件。显然,所有其他.something文件也将被隐藏。