views:

48387

answers:

13

I am a recovering Emacs user, who is trying to ease into Eclipse usage. (Since I'm encouraging the rest of the team to use it, I guess I should at least try to get along).

My current excuse is that it hurts my eyes. I'm currently using the excellent zenburn theme in emacs, and would love to find it for eclipse. However, I find that changing my color theme every few months makes for a great way to procrastinate, so ideally I'd like to find a repository for eclipse color themes.

There don't appear to be any eclipse themes indexed by Google, so all the great themes must be sitting on your hard disk somewhere. Please share them.

Thanks

+2  A: 

Is it possible to properly store and export/import colour themes in Eclipse? I believe this was not possible when I tried a couple of years back, and I've copied some obscure meta folder over to new machines since then. These metadata are per workspace, but I suppose they can be copied enough to be considered a "theme". FWIW, my scheme is not perfect as it just is/was too cumbersome to make finish it. In addition it was hard/impossible to make the rest of the GUI follow suit (background/foreground in lists, editors, etc). My scheme is inspired by the koehler scheme for vim.

larsivi
+4  A: 

It is possible to import/export colour themes in Eclipse:

File -> Import -> General -> Preferences File -> Export -> General -> Preferences

At this time I am also searching for themes, but I cannot find any.

Marcel Tjandraatmadja
Oh my gosh! The last time I tried to find a way to import/export particular settings, there was no support for this. I'm glad to see that there is now.
Mike Daniels
+4  A: 

Here's a guy who posted his eclipse preferences.

http://blog.codefront.net/2006/09/28/vibrant-ink-textmate-theme-for-eclipse/

I just imported the above file. It was painless.

Setting up your own color theme in Flex Builder (which is, I think, built on top of Eclipse, I think) is pretty tedious. I'd recommend looking for a preferences file to import, at least as a starting point.

Trevor Stow
+12  A: 

I've posted some color schemes and an example script to extract them from Eclipse's preference files at http://eclipsecolorthemes.jottit.com/

Essentially, I'm treating an subset of the Eclipse preferences as a color scheme, and using Eclipse's import functionality to apply the colors.

Saving a color scheme involves exporting all preferences and then removing non-color settings.

anonfunc
That's awesome that you set this up. I've been secretly hoping someone would do this.Thanks!
John Stauffer
How can I import the default settings? I used some of your themes, and want to turn it back to the default.
Alex Baranosky
I returned it to default using the method of the above answer.
Alex Baranosky
That was pure awesomeness, I was writing the script when I found this answer. I'm keeping all my .epf files under version control from this moment on...
Fernando
Much thanks for the Wombat scheme. It's my favorite Vim scheme. :)
demonkoryu
+106  A: 

I just found an alternative way of importing/exporting themes from Eclipse that is relatively easier (doesn't require manual editing of a file).

Essentially there are two files we want to copy or overwrite:

[workspace]\.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.ui.prefs

[workspace]\.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.ui.editors.prefs

(Side note: On Linux/Mac, the directory is [workspace]/.metadata/.plugins/org.eclipse.core.runtime/.settings/, Thanks Scott)

where,

org.eclipse.jdt.ui.prefs = Syntax Coloring

org.eclipse.ui.editors.prefs = Text Editors

I converted anonfunc's themes from http://eclipsecolorthemes.jottit.com/ into the new format. Also I created my own :)

Finally, if somebody wants to create more themes I can post them on my blog with credits. Here are some color schemes ideas to get you going.

Download theres here: (Alt. site 1, Alt. site 2)

Theme Gallery

Inkpot Inkpot

Sula (My theme) Sula (My theme)

Vibrant Ink Vibrant Ink

Wombat Wombat

Zenburn Zenburn

srand
Thanks this was useful ^^
Alberto Zaccagni
Awesome! I started to use a dark theme for my Linux Environment (KDE) and without this files I was not able to work with Eclipse because I couldnt see much :) Thanks
lostiniceland
It's worth noting that on Linux/Mac installs of Eclipse, the path is actually: **[workspace]/.metadata/.plugins/org.eclipse.core.runtime/.settings/**
Scott Anderson
-1 for all the ads on the Download link.
Jonas
I don't own the file hosting provider 2shared.com, why do I get the down vote? ;-;
srand
Any other download link? I couldn't figure out how to get them to download.
Jeff Brown
Click where it says click here :) "Save file to your PC: click here"
srand
There are plenty of better choises including some free source repositories like github.com. And thanks for themes.
Petr Gladkikh
That download site really is terrible. Great themes though, thanks!
zombat
Uploaded to two more download sites, also on my blog hosted on Google
srand
the zenburn theme makes xml files completely unreadable - wanted new colours for android dev but it uses lots of xml
rotary_engine
I removed the outdated rapidshare link (they've taken the file down).
Adam Tuttle
I know this is an old post, but do you happen to have the Sula theme for EPIC (Perl) plugin? I see this was your theme last year and I'd like to make it my theme this year :)
vol7ron
@vol7ron I haven't worked with that particular plug-in. However, feel free to use those colors if you want to manually set the colors.
srand
@srand: Yeah, I wanted to get started right away, so I manually set the colors. It took forever, It's not Sula, but I got it to how I like it. Something similar, green/white/grey/blue/orange on a dark grey/black background. It's nice. Thanks for the inspiration.
vol7ron
Just wanted to say thanks for the themes!
Rich
+2  A: 

First off thank you srand for your troubles, the Zenburn theme has really helped my eyes during late night programming.

That being said though I do want to point out a couple of things:

1 - The file [org.eclipse.jdt.ui.prefs] does not just contain color attributes and replacing it might overwrite other settings (for me it overwrote "spelling_user_dictionary=/dicts/eclipseDict.txt" and "breadcrumb.perspective=true", besides other values)

2 - The Compare editor for some of the themes makes it very difficult to see the difference between two files (especially if it's a normal text file like).

3 - Some files get really strange colors, for me the SQL files became quite unreadable.

My solution is just to copy the themes for those iknowexactlywhattochangeandwhere programming rushes and then change it back when I'm casually updating files here and there.

Hope the developers at Eclipse take heed to our whinings and make a theme editor (fingers crossed)

Cheers

Ack Frutti
+4  A: 

Just wanted to note that it seems that color themes are language-specific, that is, Eclipse-CDT (for C/C++ Development) has different theme files than Eclipse-JDT (for Java Development), etc.

So far, these have been JDT themes, but since you didn't specify your language, I figure I'd throw in a link for a CDT theme.

Consider the Eclipse-CDT Theme Generator here: http://blog.edwards-research.com/2009/11/color-schemes-for-eclipse-cdt-4/

Jim
+2  A: 

I've started proof of concept plug-in that manages color themes.

It's called Eclipse Pimp, and it's free software (3-clause BSD license).

Pimp is in early development and it isn't really usable yet.

http://bitbucket.org/goj/eclipse-pimp/wiki/Home

Krzysiek Goj
+3  A: 

Hi Does anyone know if it is possible to change the entire window coloring in Eclipse? I do not mean the colors of the editors inside the windows I mean the colors of the window managers, they are awful and too bright for my eyes?

kartal
You do that in the General > Appearance > Colors and Fonts preference page.
leonbloy
+1  A: 

I loved the pre set themes. I am currently using SULA but I wasn't able to set the "hover" back ground color anywhere using the UI. With the default "yellow" 255,255,225(RGB) you are unable to see the SULA text correctly. I grep'ed the pref files for the "yellow" RGB values.

I found this file for CDT and my c++. I'm sure there will be other lang specific files to adjust.

CDT:

eclipse_workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.cdt.ui.prefs

modify or add these these lines to file. RGB is the color format. Set to value which matches your "theme". I used the SULA theme (many thanks) and so I set the hover BG to black(0,0,0).

////// modified this line
sourceHoverBackgroundColor=0,0,0

///// had to add this line
sourceHoverBackgroundColor.SystemDefault=false

viking overlord
+1  A: 

Your prompt: "There don't appear to be any eclipse themes indexed by Google, so all the great themes must be sitting on your hard disk somewhere. Please share them."

My answer: I am not sure whether I have a "great" theme for you but building on some experience writing a Vim colour scheme ( http://bit.ly/maroloccio_vim ) I have tried my hand at making one for Eclipse too: http://bit.ly/maroloccio_epf. (Still in its infancy, mind you, hence the v0.0.1)

Feel free to use it if you like it (do keep the header with my e-mail in it so that I may receive feedback from users) and especially feel free to customise it if you wish, the structure in it should provide ample opportunity for personalisation. It's not a migration script per se but I think if you know your way around 's/colour1/colour2/g' you should be fine with just a template! It has stubs for:

  • Abstract Text Editor
  • C/C++ (CDT)
  • Build Console (CDT)
  • Java (JDT)
  • HTML (WST)
  • XML (WST)
  • CSS (WST)
  • JavaScript (JSDT)
  • Python (PyDev)
  • Subversion (Tigris) ... and more.

Let me know what you think if you use it...

PS: I almost forgot - here's a screenshot of it highlighting Java. http://picasaweb.google.com/lh/photo/o7mWcx9G8TMXoU80S--_uw

Maroloccio
A: 

FWIW, I've created a Github mirror for the color schemes on eclipsecolorthemes.jottit.com/. It includes the epf2colorscheme.sh script and can be found on github.com/demonkoryu/eclipse-color-schemes.

demonkoryu
A: 

Awesome, BUT how would you modify say, a hibernate tools editor's color or how would I find the preference file for the hibernate tools HQL editor or any other plugin? I have like twenty plugins managed by YOXOS (plugin manager)

It is available in windows/preferences/HQL editor for quick fix