CLion 2020.2 Help

File Colors

File | Settings | Appearance and Behavior | File Colors for Windows and Linux

CLion | Preferences | Appearance and Behavior | File Colors for macOS Ctrl+Alt+S the Settings/Preferences icon

Use this page to set different background colors for distinguishing between project files of specific scopes.

Configuring file colors in Settings/Preferences
ItemDescription
Enable file colorsSelect this checkbox to enable the feature.
Use in editor tabsEnable colors in editor tabs.
Use in project ViewEnable colors in the Project tool window and in search results (for example, in the Find in Path dialog Ctrl+Shift+F).
Manage scopesClick this button to define the required scopes.

Local Colors

In this area, configure the color-scope associations to be applied locally.

This area contains the predefined scope Non-Project Files:

File colors

Note, that the non-project elements of the Project tool window and editor tabs are highlighted accordingly:

Scope highlighting

Once defined, a color-scope association cannot be changed. To re-assign a color to a scope, remove the existing association and define a new one.

ItemTooltipDescription
ScopeThis read-only field shows the scope to apply the color setting to.
ColorThis read-only field shows the color to be applied to the corresponding scope.
the Add buttonAdd Click this button to open the Add Color Label dialog in which you can configure a new color-scope association.
the Remove buttonRemoveClick this button to remove the selected color-scope association.
the Move up button or  the Move down buttonMove up or Move down Use these buttons to sort the color-scope associations and thus determine the order in which they are applied.
the Share buttonShare

Click this button to have the selected scope-color association shared among the members of the team.

The selected association will be accordingly moved to the list in the Shared Colors area.

Shared Colors

Use the controls in this area to configure the color-scope associations to be shared among all the members of the team. File colors are stored as project settings in .idea/fileColors.xml.

Once defined, a color-scope association cannot be changed. To re-assign a color to a scope, remove the existing association and define a new one.

ItemTooltipDescription
ScopeThis read-only field shows the scope to apply the color setting to.
ColorThis read-only field shows the color to be applied to the corresponding scope.
the Add buttonAdd Click this button to open the Add Color Label dialog in which you can configure a new color-scope association.
the Remove buttonRemoveClick this button to remove the selected color-scope association.
the Move up button or  the Move down buttonMove up or Move down Use these buttons to sort the color-scope associations and thus determine the order in which they are applied.
the Unshare buttonUnshare

Click this button to have the selected scope-color association applied only locally.

The selected association will be accordingly moved to the list in the Local Colors area.

Last modified: 12 November 2020