Configuring Colors and Fonts
On this page:
With IntelliJ IDEA, you can maintain your preferable colors and fonts layout for syntax and error highlighting in the editor, search results, Debugger and consoles via font and color schemes.
IntelliJ IDEA comes with a number of pre-defined color schemes. You can select one of them, or create your own one, and configure its settings to your taste.
It's important to mention the node Language Defaults - it contains the settings that are common for all the supported languages. It's enough to change one of the settings there, and then inherit this setting from the defaults.
Configuring colors and fonts
To configure color and font scheme
- Open Settings/Preferences dialog, and under the Editor node, click Colors & Fonts.
- Select the desired scheme from the Scheme name drop-down list.
- Under the Colors and Fonts node, change the
font families used in the editor and in the console:
- Define font family for the editor and console. When you just open the Font or Console Fonts pages under the Colors and Fonts node, IntelliJ IDEA displays Editor Font area where you can configure primary and secondary fonts, their size and line spacing.
- Under the Colors and Fonts node, open pages to configure specific color preferences and font types for the different supported languages and IntelliJ IDEA components.
Changing language defaults
To do that, select the check box to the left of the field name Background, and then click the white swatch. Color Picker opens; all you need to do is to select the desired color and click OK:
So far, the changes to the language defaults are made; now let's look how they can be inherited.
Next, clear the check box Use inherited attributes, and define the desired font type using the Bold and Italic check boxes. In this case, these textual components will change for the selected language only!
Observe results in the preview pane.