Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Syntax Coloring File

Tags:

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?

like image 712
Jonas Gröger Avatar asked Jan 27 '11 15:01

Jonas Gröger


1 Answers

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:

  • [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

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):

  • Window > Preferences > Java > Code Style > Formatter
  • Select your profile
  • Edit
  • Export...

This generates an XML file of all your Java formatting settings that can be easily shared/imported.

like image 149
kaliatech Avatar answered Sep 22 '22 18:09

kaliatech