从Eclipse搜索中排除文件夹 [英] Exclude folders from Eclipse search
问题描述
有没有办法排除某些文件夹(及其所有子文件夹)快速而肮脏的方式:
右键单击文件夹,转到属性,并将文件夹标记为派生。派生实体默认排除在搜索之外。这种方法的问题是Eclipse忘记,如果您删除该文件夹(从Eclipse或外部,然后刷新项目树),则会导出该文件夹。像Eclipse一样,这是一个长期存在的错误(10
安全的方式:
创建一个工作集,仅包含您要搜索的实体,并仅在该工作集内搜索。有关此过程的详细信息,请参见 Dave Ray的答案。
Is there a way to exclude certain folders (and all their subfolders) from searching within Eclipse?
The quick and dirty way:
Right click on a folder, go to properties, and mark a folder as derived. Derived entities are excluded from searching by default. The problem with this approach is that Eclipse "forgets" that the folder is derived if you delete it (either from within Eclipse or externally, followed by refreshing the project tree). Like so often with Eclipse, this is a long-standing bug (10 years in this case) which still applies to the current version (4.6 Neon at the time of writing).
The safe way:
Create a working set including only those entities you want searched and search only within that working set. See Dave Ray's answer for details on this procedure.
这篇关于从Eclipse搜索中排除文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!