Chapter 5
IntelliJ Idea Color Schemes / Themes
Configuration
In this article we are going to present how to customize the IntelliJ IDEA built-in color schemes or provide
your own color theme
for use in the IDE. Using a color scheme may prove to be quite useful for a developer especially in terms of
code readability. For
this purpose we will use the IntelliJ IDEA 14.1.2 community edition which is available for free for all end
users.
Color scheme management in IntelliJ IDEA was modified to simplify the work of scheme designers and make
schemes look
equally well for different programming languages even if not designed specifically for these languages.
Previously language
plug-ins were using fixed default colors incompatible, for example, with dark schemes. The new
implementation from version
12.1 and above allows to specify a dependency on a set of standard text attributes which are linked to a
scheme but not to
any specific language. Language-specific attributes still can be set by a scheme designer if needed but it’s
optional. New
color schemes have got a new .icls (Idea CoLor Scheme) extension to avoid confusion about compatibility
problems with older
platform versions: if only standard attributes are set, they will not be used by the version prior to 12.1 and this
will result in
different highlighting colors.
5.1 Color Schemes
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. Note
that pre-defined
schemes are not editable. You have to create a copy of a scheme, and then change it as required. The 14.1.2
version which we
are using comes with 2 predefined color themes / schemes:
• Darcula: dark color scheme which seems more natural for many developers. Preferable to software
developers who are used
to text editors and nix-based OS console look.
• Default: light color theme with white console background
5.1.1 Configuring general color scheme
In order to configure color and font scheme, open File!Settings, and under the Editor node, click Colors &
Fonts. Select the
desired scheme from the Scheme name drop-down list. If you need to change certain settings of the selected
scheme, create its
copy. To do that, click Save as button, and type the new scheme name in the dialog box: