How to hide unnecessary files from intellij project view?

痞子三分冷 提交于 2019-12-10 15:23:30

问题


Given a sample gradle project with project structure as shown:

As you can see there are bunch of stuff you actually dont ever need to see in idea but you need them to exist...

I know about ignored file/folder types under Editor/File Types but those are affecting the libs and projects, idea will ignore them everywhere while i only need to hide few unnecessary entries in project view.

Primary question : how do we hide them from project view?

Also for very big projects somethimes it is easy if some related modules are shown one after another... but do not do like that alphabeticaly.

Secondary question : is it possible to have customized order in project view?

I'm using Intellij 15 EAP IU-142.5047.6


回答1:


Usually I use the Scopes support for filtering out/in elements. I like this support and it can be use as the scope for other tool windows such as Hierarchy Call, and Find in path dialog. Moreover you can have many scopes and easily switch between them. The support for scratch files and version control - change sets - benefits from scopes support.

In order to create a new Scope:

  1. open Settings > Appearance & Behavior > Scopes

  2. Create a new scope by clicking on + icon

  3. and then use include/exclude (recursively)

Kind regards



来源:https://stackoverflow.com/questions/32886132/how-to-hide-unnecessary-files-from-intellij-project-view

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