# 文件颜色

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/clion/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)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) !["设置"图标](https://resources.jetbrains.com/help/img/idea/2026.3/fileColors.xml` ）。

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

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

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

## 工作原理

* [作用域与文件颜色](configuring-scopes-and-file-colors.html)

## See also

### 流程

[配置 IDE 设置](configuring-project-and-ide-settings.html) [全局搜索](searching-everywhere.html) [文件作用域与文件颜色](configuring-scopes-and-file-colors.html)

