# 文件颜色

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

> **TL;DR**
> `文件 | 设置 | 外观与行为 | 文件颜色`  适用于 Windows 和 Linux
>
>
>
> `%instance% | 设置 | 外观和行为 | 文件颜色`  适用于 macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) !["设置"图标](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.settings.svg)

使用此页面为 [区分特定作用域的项目文件](configuring-scopes-and-file-colors.html)设置颜色。

![在设置中配置文件颜色](https://resources.jetbrains.com.cn/help/img/idea/2026.3/fileColors.xml` ）。

|  条目  |  工具提示  |  描述  |
| --- | --- | --- |
|  !["添加"按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.add.svg)  |  添加  |  打开可用的作用域列表。 在列表中所需的作用域旁点击 ![向右箭头按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.general.arrowRight.svg)，并选择一种颜色。  |
|  !["移除"按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.remove.svg)  |  移除  |  删除所选的 color-scope 关联。  |
|  ![上移按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.moveUp.svg) / ![下移按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.moveDown.svg)  |  上 / 下  |  对颜色与作用域的关联进行排序，并 [更改顺序](configuring-scopes-and-file-colors.html#arrange-the-order-of-scopes)，以确定其应用顺序。  |
|    通过 VCS 共享    |  |  通过 VCS 共享所选本地作用域。  |

应用更改并关闭对话框。 之后，您将在界面中选定的区域看到颜色：

![在编辑器选项卡和搜索结果中的范围高亮显示](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ij_scope_highlighting.png)

> **Note:**
> 本主题介绍如何设置用于区分特定作用域的项目文件的颜色。 如果您需要设置  VCS 文件状态颜色 ，请参阅 [此页面](adding-files-to-version-control.html#file_status)。

## 运作方式

* [范围和文件颜色](configuring-scopes-and-file-colors.html)

## See also

### 过程

[随处搜索](searching-everywhere.html) [文件范围与文件颜色](configuring-scopes-and-file-colors.html)

