Exporting Eclipse’s Color Schemes

  1. Export your Eclipse preferences using File > Export > General > Preferences. This will output a .epf file with a whole bunch of preferences including repository info; way more than you need.
  2. Run some simple  commands to create a preference file that contains color information only.
  3. Add “file_export_version=3.0″ as the top line of your new epf file. This allows the file to imported into Eclipse >= 3.0. Without this your preferences will not be imported.

"file_export_version=3.0" > my_color_prefs.epf
grep -i color >> my_color_prefs.epf
grep -i org.eclipse.wst >> my_color_prefs.epf
grep -i org.eclipse.php.ui >> my_color_prefs.epf

Update 27/10/2009 ( caro-20091027 )

Update 02/02/2010 ( caro-20100202 ) for PDT 2.2

Thanks to timrobles.com