IntelliJ IDEA 13.1 Web Help

From the Database tool window:
Select the element or elements of interest, and select Color Settings from the context menu.


Select the color, and specify how this color should be used (see Shared and Set recursively). Use the check boxes in the Appearance Settings section to enable or disable the use of the database colors in various places in the UI.

Item Description
Color Click the color that you want to use for the element or elements selected in the Database tool window.

If the color that you want is missing, click Custom and specify the color in the dialog that opens.

The color which is currently selected is marked with its name, e.g. Blue.

DBColorsColor

If you don't want to use any color, click No Color.

Shared Select the check box if you want to share the change of color you are about to make with your team.

In technical terms, the new color (for the selected element or elements) will be stored in

  • .idea/databaseColors.xml or the .ipr file if the check box is selected.
  • .idea/workspace.xml or the .iws file if the check box is not selected.

The workspace.xml or the .iws file, normally, is not shared through version control while the rest of IntelliJ IDEA configuration files are.

For more information on IntelliJ IDEA configuration files and their sharing, see Project.

Set recursively If the check box is selected, the selected color will be applied to the element itself and all its subordinate elements recursively.

If the check box is not selected, the colors set individually for the subordinate elements won't change.

To illustrate, let's assume there is a "blue data source" within which one table "is orange" and one - rose. (There may also be columns "painted differently".)

DBColorsSetRecursivelyInitial

Now let's "make this data source green".

If the color is applied recursively, everything within that data source will "become green".

DBColorsSetRecursivelyOnResult

Otherwise, the corresponding tables (and columns) will keep their initial colors.

DBColorsSetRecursivelyOffResult

Appearance Settings
Enable Database Colors Clear the check box to (temporarily) disable the use of the database colors everywhere in the UI.
Use in Editor tabs Select the check box to enable the use of the database colors for editor tabs (when working with the input pane of the database console and the Table Editor).

When this option is off, the tabs look like this:

DBColorsEditorConsoleOff

When this option is on, the tabs have the same color as the corresponding data source or table (e.g. blue):

DBColorsEditorOn

Use in Database view Select the check box to enable the use of the database colors in the Database tool window.

When this option is off, the tool window looks like this:

DBColorsDBOff

When this option is on, the tool window may look as shown below. (In this example, the blue color is set for the corresponding data source.)

DBColorsDBOn

Use in Console Select the check box to use the database colors to paint the toolbar background in the input pane of the database console.

When this option is off, the toolbar looks like this:

DBColorsEditorConsoleOff

When this option is on, the toolbar background has the same color as the corresponding data source (e.g. blue).

DBColorsConsoleOn

No Color Click this button, if you don't want to use any color for the selected element or elements.