After setting up the Java syntax highlighting for my workspace, I want to backup this file to, lets say, give it to my friends.
Can you tell me in which file Eclipse stores these coloring values?
After setting up the Java syntax highlighting for my workspace, I want to backup this file to, lets say, give it to my friends.
Can you tell me in which file Eclipse stores these coloring values?
If you want, try out the Eclipse Color Theme plugin. It's easier.
See some themes. I prefer bright ones but there are dark ones also.
After you install the plugin, go to
Windows > Preferences
and thereGeneral > Appearance > Color Themes
and pick one.If you want to use the Intellij IDEA Theme, you must download the xml for it (not the .epf) and import it with the dialog.
(I'm not a developer of this plugin)
You can also create a
.epf
file (Eclipse preference file) with the useful prefs contained inHere is an example :
Sometimes simply
import/export
would not be enough, so you may need a list of.pref
files where the syntax coloring settings are stored. What I have here is not complete and I just list what I use and I hope it helps.(I process
.java
,.jsp
,.xml
,js
and.properties
files.)You can find them by searching
.pref
files in your workspace, and open each one to see which contains color code. Remember to adjust your searching options to look into subfolders.You may copy them when you finish adjusting your syntax coloring settings. When needed, search
.pref
again to get access to their locations, and restore your settings by copying the lines with color code, in order to avoid unpredictable side effect. As I can see this is the only way, inconvenient buy effective.SECOND ANSWER (also in comments below)
Sharing Java color syntax setting is possible by working with various Eclipse preference files. See: http://srand2.blogspot.com/2009/08/eclipse-color-themes.html .
Specifically:
Also, for future readers, @jonas-groger added comment below regarding http://eclipsecolorthemes.org/ as another option.
FIRST ANSWER (didn't address color syntax)
Using Eclipse Helios (older versions of Eclipse are similiar):
This generates an XML file of all your Java formatting settings that can be easily shared/imported.