如何从intellij项目视图中隐藏不必要的文件? [英] How to hide unnecessary files from intellij project view?

查看:151
本文介绍了如何从intellij项目视图中隐藏不必要的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出一个示例gradle项目,其项目结构如下所示:

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...

我知道关于编辑器/文件类型下忽略的文件/文件夹类型,但那些影响了libs和项目,想法会忽略它们,而我只需要在项目视图中隐藏一些不必要的条目。

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.

主要问题:我们如何将它们隐藏在项目视图中?

对于非常大的项目,如果一些相关的模块一个接一个地显示出来很容易......但是不要像字母那样显示。

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.

次要问题:是否可以在项目视图中定制订单?

我正在使用 Intellij 15 EAP IU-142.5047.6

推荐答案

通常我使用Scopes支持过滤out / in元素。
我喜欢这种支持,它可以用作其他工具窗口的范围,例如Hierarchy Call和Find in path对话框。此外,您可以拥有许多示波器并轻松切换它们。对临时文件和版本控制的支持 - 更改集 - 从范围支持中获益。

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.

为了创建新范围:


  1. 打开设置>外观&行为>范围

  1. open Settings > Appearance & Behavior > Scopes

点击+ icon

创建新范围然后使用包含/排除(递归)

and then use include/exclude (recursively)

亲切的问候

这篇关于如何从intellij项目视图中隐藏不必要的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆