How to hide src folder from eclipse project explorer?

旧街凉风 提交于 2019-11-26 22:49:46

问题


I use a maven standard directory layout for my projects.

The image Below is a typical project explorer view of a "not so minimum working example" of the view I want to customize.

As you can see, all the relevant folders are marked as source folders, so there is no need to show the src folder hierarchy as it is shown below the included libraries.

So the question is, how can I get rid of the redundant src folder showing, i.e. how to show only source folders and libraries?

I've playing around with filters and content configuration of the view but couldn't find the way to do it.


回答1:


Click to the third right top button, then "Filters" and then check "Name filter patterns" and write "src". Then the second src folder is hidden.




回答2:


This is actually not added twice it is because of the explorer view you are using, just change it to navigator view and your problem will get solved.

Check this post might help you more, it is not related to you answer but show how to select navigator view Hope this will help you :).




回答3:


The description in Andreas B.'s answer refers to the Package Explorer view. In Project Explorer view it's:

View MenuFilters and Customization...User filtersNewsrc → activate/check it → OK



来源:https://stackoverflow.com/questions/14437227/how-to-hide-src-folder-from-eclipse-project-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!