如何隐藏phpstorm项目中的一些文件 [英] How can I hide a few files from my phpstorm project

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

问题描述

在我的PhpStorm项目中,我有一些文件位于根文件夹中,并且不经常修改.

In my PhpStorm project, I have a few files that sit in the root folder and are not modified often.

例如,在这里我很少触摸favicon, gruntfile, humans, package, robots, gitignore之类的文件.因此,在所有9个文件中,我只需要3个文件.我无法删除它们(项目仍需要它们),它们分散了我的注意力.

For example here I rarely touch files like favicon, gruntfile, humans, package, robots, gitignore. So out of all 9 files I only need 3. I can not remove them (they still needed for the project) and they distract my attention.

所以我正在寻找一种隐藏/排除它们的方法.我能够找到与文件夹类似的方法,但它仅适用于文件夹.在phpstorm官方页面上,有一个页面听起来类似却做了完全不同的事情(文件仍然保留在少数文件中,您无法自动完成其中的任何内容).同样, SO的答案也在处理代码检查,而不是隐藏文件.

So I am looking for a way to hide/exclude them. I was able to find similar approach with folders, but it works only with folders. On official phpstorm page there is a page which sounds similar but does something completely different (files still stay in the few, you just can not autocomplete anything from them). Also this answer from SO is also dealing with code inspection, not hiding files.

推荐答案

  1. Settings | Scopes

创建仅包含所需文件/文件夹的新范围(或相反:排除所有不需要的文件/文件夹)

Create new scope that would include only files/folders you want (or opposite: exclude all unwanted files/folders)

在项目视图"面板中使用该范围,而不是默认的项目"

Use that scope in Project View panel instead of default "Project"

这篇关于如何隐藏phpstorm项目中的一些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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