Solarized Colorscheme for IntelliJ IDEA

来源:互联网 发布:开源crm java 源码 编辑:程序博客网 时间:2024/06/18 14:53


Solarized Colorscheme for IntelliJ IDEA

Original Solarized color scheme developed by Ethan Schoonover es@ethanschoonover.com

Adapted for IntelliJ IDEA by:
Adam Vandenberg flangy@gmail.com
Johan Kaving johan@kaving.se

Visit the Solarized homepage

See the Solarized homepage for screenshots, details and color scheme versions for Vim, Mutt, popular terminal emulators and other applications. These versions can also be found in the mainSolarized repository on GitHub.

Unfortunately the IntelliJ subtree in the main repository has not been updated and is out-of-sync with this repository.

For IntelliJ this IntelliJ-only repository is therefore recommended over the main repository.

Status

These color scheme files are primarily tested with the latest version of IntelliJ IDEA Community Edition. They might work with other versions of IntelliJ IDEA as well as other JetBrains tools (e.g. PhpStorm and PyCharm).

This table lists the languages (and other sections under Preferences | Editor | Colors & Fonts) for which the syntax highlighting has been adapted to the Solarized color scheme:

Language/SectionSupportedNoteActionScriptYes Android LogcatYes Apache ConfigYes BEMHTMLYes BashYes(BashSupport 1.1beta14 or later)Buildout configYes CNo C++No CMDYes CSSYes Clojure TemplatesYes CoffeeScriptYes Custom TemplatesYes DartYes DebuggerYes DiffYes Django/Jinja2 TemplateYes ErlangYes File StatusYes GeneralYes Gherkin (Cucumber)Yes Google GoYes GQLYes GroovyYes HAMLYes HTMLYes HaskellYes JFlexYes JadeYes JavaYes JavaScriptYes JSPYes Jodd props fileYes KotlinYes LESSYes Localization fileYes LuaYes Mako TemplateYes MarkdownYes Objective-CYes PHPYes PropertiesYes PythonYes ReST fileYes RegExpYes RubyYes SASSYes SQLYes ScalaYes TeaYes TwigYes XMLYes XPathYes YAMLYes 

Installation

Option 1: Install using "Import Settings..."

  1. Go to File | Import Settings... and specify the intellij-colors-solarized directory or thesettings.jar file. Click OK in the dialog that appears.

  2. Restart IntelliJ IDEA

  3. Go to Preferences | Editor | Colors & Fonts and select one of the new color themes.

Option 2: Manual installation

  1. Copy Solarized Dark.xml and Solarized Light.xml to your IntelliJ IDEA preferences color directory. The directory varies, depending on which JetBrains IDE you are using.

    The colors directory may need to be created.

    It is typically in:

    Mac OS X

    • ~/Library/Preferences/IntelliJIdea13/colors (IntelliJ IDEA 13 Ultimate Edition),
    • ~/Library/Preferences/IdeaIC13/colors (IntelliJ IDEA 13 Community Edition),
    • ~/Library/Preferences/WebIDE70/colors (PHPStorm 7.0),
    • ~/Library/Preferences/WebIDE80/colors (PHPStorm 8.0),
    • ~/Library/Preferences/WebStorm8/colors (WebStorm 8.0).

    Windows

    • %USERPROFILE%\.IdeaIC13\config\colors (IntelliJ IDEA 13 Community Edition),
    • %USERPROFILE%\.PyCharm40\config\colors (PyCharm 4.5 Community Edition).
  2. Restart IntelliJ IDEA

  3. Go to Preferences | Editor | Colors & Fonts and select one of the new color themes.

Darcula

Depending on the Look and Feel that you use the background color for editor tabs will be different. The default L&F has a light gray background, while the Darcula L&F has a dark background.

It is hard to find colors that work equally well on both light and dark backgrounds, and therefore thesettings.jar file contains Darcula versions of the color schemes.
The only difference from the regular versions is the file status colors and the Darcula schemes are automatically generated by the buildjar.sh script.

Note About Fonts

Unfortunately, font settings are included in the color settings files. You should probably modify these in Preferences | Editor | Colors & Fonts | Font after adding the color schemes to your IntelliJ IDEA installation.

Note About Committing Changes

If you want to commit updates to the XML color scheme files, make sure to run the buildjar.shscript before committing to generate an updated settings.jar file as well. The script has been tested on OS X, on other operating systems you're on your own.

0 0
原创粉丝点击