Can I make IntelliJ IDEA look more like Eclipse?

2019-01-10 08:14发布

问题:

I've been developing in Eclipse for a long while, but am taking a hard look at IntelliJ IDEA 9.0.3 because of its good Flex development tools and Maven flexmojos integration.

But I just CAN'T STAND the look of the thing on Ubuntu 10.04. Coming from Eclipse, the fonts and colors make everything very hard to read....very straining on the eyes. I've played around with fonts and colors and now its a little bit better.

But has some kind soul already created some sort of profile I can load into IDEA and poof -- make it visually look more like Eclipse?

回答1:

Eclipse and IDEA are using different UI toolkits (SWT vs SWING), so it would be hard to make it look the same.

As @Shakedown said, changing Look&Feel in Settings | Appearance is one of the options. Note that Java allows to install additional third-party Look&Feels.

Editor font is configured in Settings | Editor | Colors & Fonts. Fonts are rendered by the JVM, so it shows any TTF fonts that it can find. If for some reason not all your system TTF fonts are visible, you need to copy *.ttf files into JDK_HOME/jre/lib/fonts. After restarting IDEA you'll be able to choose new fonts. Fonts missing some Unicode characters required for proper code display will not be listed.

Check out the list of most popular programming fonts. However, Java can render TTF fonts only and it may be hard to find TrueType versions of some fonts. My favorite font is Consolas (provided with Windows).

As for the color schemes, you can Google several contributed presets in the XML format, like this one. Download the linked XML, rename it to Cobalt.xml, place the file in ~/.IntelliJIdea90/config/colors directory. Restart IDEA, select Cobalt scheme in Settings | Editor | Colors & Fonts.

Another nice color scheme is VibrantInk.

It's also possible to disable side tool window bars, menu bar, etc to make IDEA look like simple editor if you'd like so, even editor tabs can be completely hidden.



回答2:

Installation Eclipse color scheme:

  1. Copy eclipse.xml to your IntelliJ IDEA preferences color directory. The directory varies, depending on which JetBrains IDE you are using. 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).

    Windows

    • %USERPROFILE%/.IdeaIC13/config/colors (IntelliJ IDEA 13 Community Edition)
  2. Restart IntelliJ IDEA

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



回答3:

download a color scheme for IntelliJ such as "Classic Eclipse" from http://www.ideacolorthemes.org/home/

It a jar file then you do File > Import Settings... and open the jar file and restart.

You should also go into Preferences > Keymap and change to the dropdown to be eclipse sortcuts so that you can get about easier.



回答4:

I agree, I can't stand nearly all of the Look and Feels, but I really like Nimbus; File -> Settings -> Appearance -> Look and Feel = Nimbus. Give that a go and see if it helps.



回答5:

Try adding

-Dawt.useSystemAAFontSettings=gasp
-Dswing.aatext=true
-Dsun.java2d.xrender=true

to your idea64.vmoptions

It improves antialiasing on my Ubuntu 14.04, Gnome Shell, Oracle JDK 7 slightly. It's not a big difference, still quite far from Eclipse, but it makes it better.

You can also try on, and lcd options instead of gasp. Some users report it makes a difference (for me, on and gasp seem to work the same, and lcd doesn't change anything).

I don't see any difference with Oracle JDK 8.

If you're using OpenJDK, you might need to patch it.

See http://youtrack.jetbrains.com/issue/IDEA-57233#

Update:

For Oracle JDK 8, removing -Dawt.useSystemAAFontSettings=gasp improves the rendering a bit for me on Ubuntu 14.10



回答6:

  1. Install Eclipse Color Theme Plugin: https://marketplace.eclipse.org/content/eclipse-color-theme

  2. Download "IntelliJ Dracula" theme: http://www.eclipsecolorthemes.org/?view=theme&id=14105 (select the Eclipse Color Theme (XML) file download).

  3. In Eclipse, go to Windows > Preferences > General > Appearances > Color Theme > Import a theme. And select the xml file just downloaded.