在 IntelliJ WebStorm 中目录为红色是什么意思?

What does it mean when a directory is red in IntelliJ WebStorm?

所以我错误地按了一些东西(在弹出菜单中所以不确定它是什么)现在我的一个文件夹是红色的。

常规目录如下所示:

表示Excluded Root,在IntelliJ IDEA Docs中解释为:

Excluded roots are ones that IntelliJ IDEA "partially ignores".

Very limited coding assistance is provided for files in excluded folders. Classes contained in excluded folders don't appear in code completion suggestion lists, references to such classes are shown in the editor as unresolved. When searching, IntelliJ IDEA doesn't look in excluded folders, etc.

Here 是 IntelliJ 符号和图标的完整列表以供将来参考。

您可以通过在项目视图中右键单击目录并选择 标记目录 As/Cancel 排除.

来取消排除

作为旁注,如果文件夹本身是 "grey" 但目录名称是 "red" 显然这意味着 "a git root" 或一些奇怪的。 更新:它实际上是棕色的,表示 "unversioned - File exists locally, but is not in the repository, and is not scheduled for adding." 看到密钥 here。如果您使用的是 "night" 主题,那么它看起来 比棕色更接近红色