且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Eclipse中的搜索结果中排除目标文件夹

更新时间:2023-09-25 20:40:40


  1. 将目标文件夹标记为派生资源这些文件夹的属性屏幕(此选项位于只读和归档属性旁边)。


  2. 在快速搜索( Ctrl + Shift + R )屏幕按下右上角的箭头,然后选择显示派生资源。


然后这些目标文件将不要在快速搜索中考虑。


I was wondering if it's possible to exclude target folder from eclipse quick search :

Ctrl+Shift+R

If anyone knows how to do that, please advise.

Update: I am using Maven 2, and M2E , WTP Eclipse plug-ins.

  1. Mark the "target" folders as "derived" resource from the properties screen of those folders (this option is next to read only and archive property).

  2. In the quick search (Ctrl+Shift+R) screen press the arrow in the top right corner and untick "Show derived resources".

Then those target-files will not be considered in the quick search anymore.