not even a single answer of the above let me able to get the original theme as i expected. i tried myself & got my default theme by changing the workspace. this led me to the original theme (same-to-same) that i used to saw when installing eclipse !


i had similar issue, i imported a color theme and didn't like it. i never thought reverting will be so much trouble. i installed a color theme plugin "eclipse color theme 0.14.0."

i went to windows-->preferences-->general-->appearance-->color theme. i selected the default option. it reverted to default.

hope this helps!


try switching between different themes option available in general->appearance->colors and fonts.

i earlier used dark theme in juno. then reverted to windows 7 classic theme but was left with black background. and that led me to this question. having not found any solution i finally tried with windows xp olive and to my amazement black background was restored to default.

enter image description here


i ran into a similar situation for network preferences. launching eclipse.exe with the clean option helped in my case


to switch back to eclipse's original theme go to window > preferences > general(click on drop down) > appearance(do not click on drop down) > themes: light (in drop down menu) > apply and close. now restart eclipse.

it helped me to get back the original eclipse theme.


open any java class -> right clic -> checkstyle -> clear checkstyle vilolations. it works for me.


go to windows>preferences>java>editor>syntax coloring go all the way down and click on restore defaults & apply and close


  • window > preferences > editors > restore defaults

  • window > preferences > java > editor > syntax coloring > restore defaults

  • window > preferences > javascript > editor > syntax coloring > restore defaults

  • window > preferences > web > css files > editor > syntax coloring > restore defaults

  • window > preferences > web > html files > editor > syntax coloring > restore defaults

  • window > preferences > web > jsp files > editor > syntax coloring > restore defaults

  • window > preferences > xml > dtd files > syntax coloring > restore defaults

  • window > preferences > xml > xml files > editor > syntax coloring > restore defaults

  • window > preferences > xml > xsl > syntax coloring > restore defaults

  • window > preferences > data management > sql development > sql editor > syntax coloring > restore defaults


you need to do the process for all individual languages you work on...

enter image description here


just delete your .metadata folder in your workspace and start eclipse....:)


i was able to solve a similar problem like this:

  1. close the eclipse ide
  2. remove the .metadata folder from your eclipse workspace
  3. relaunch eclipse

the only disadvantage is that you have to re-import all your projects.


i am not an expert on this, but i'll share my example with you. one guy suggested to create new eclipse preferences file or epf file using another clean install of eclipse. i made a file called clean.epf and compared it with rainbowdrops.epf (the one which messed up my highlighting and such). i noticed a huge difference between the two epf files. so, you might not want to use this method.

the whole windows --- preferences thing did not help. so, i just closed eclipse. went to

my workspace directory/.metadata/.plugins/org.eclipse.core.runtime/.settings/

and deleted the file org.eclipse.ui.editors.prefs and opened eclipse. it works. btw, keep a back up of your .settings folders just in case.

in case you want to see some difference between rainbow and clean epf -

rainbow -

...more here

clean (exporting all) -

...more here

clean (exporting only java) -

...end of file

so, i am not sure if this is the best way to go.


i was having this problem in eclipse luna (4.4.2)

  1. exit eclipse
  2. deleted the following under the .metadata/.plugins/org.eclipse.core.runtime/.settings directory
    • com.aptana.theme.prefs
    • com.github.eclipsecolortheme.prefs
    • org.eclipse.e4.ui.css.swt.theme.prefs
  3. started eclipse
  4. in preferences > general > appeareance > color theme > check "set all background colors to default"

without step 4. a vertical strip near line numbers remained the older background color


none of the answers above worked for me for mars, so i took drastic measures.

  • possibly optional: donwload newest version of eclipse from their website
  • possibly optional: find where your executable of current eclipse's at, and remove the whole folder (you can't uninstall eclipse through configurations because it never really installs itself on the system)
  • remove the .metadata folder inside your workspace folder, e.g. c:/users/bram/documents/workspace/.metadata (you can leave the projects as they were)
  • remove the .eclipse folder inside {user}, e.g. c:/users/bram/.eclipse
  • optional: clean file system (and registry?) with a tool such as ccleaner

the last step is definitely optional, but i'm not sure about the first two. in other words, i can't confirm that the corrupted files were inside eclipse's executable folder, inside .eclipse or inside the workspace's .metadata. i'm pretty sure .metadata isn't the culprit since i'd already removed that before so my guess is that the folder .eclipse in {user} is the cause!

if you've tried my steps, please comment whether or not they helped you and which removed folder you think solved it.


just remove .metadata from your eclipse workspace you can find it c:\users\username\workspace


deleting everything under your workspace's .metadata\.plugins\org.eclipse.core.runtime\.settings will restore to defaults but you will lose every other setting too. you can selectively undo changes made by importing rainbowdrops.epf

open ranbowdrops.epf. mine looks like this





the lines starting with /instance/ccw.core will go into file ccw.core.prefs. lines instance/ will go into and so on. you need to delete those files only. there are quite a lot of them though (i had to delete 53), easy way to sift them is to find the first one and sort by modification time they will group together.

btw there is nice dark theme available by default in eclipse 4.7 (2017). you can try and switch color themes without this kind of hassle by installing eclipse color themes plugin, it also has good selection of dark color themes too.


i went to my workspace


and then deleted all recently added files !!


to me the first answer by rikus khan was almost what i needed. it wasn't enough to go to ,e.g. general > editors > text editors and click restore defaults. i had to choose every single subcategory, namely: accessibility, annotations, hyperlinking, etc., and manually restore their defaults as well. apparently restoring defaults doesn't propagate down the tree.

the problem i had was the underscoring of warnings and errors in java editor changed to highliting (after importing rainbowdrops.epf, recommended by the moonrise ui theme) and didn't want to revert when changing syntax coloring and other related options. this option itself is located in the aforementioned annotations > errors and warnings.


i had the same problem. my path back to default was as follows:

  1. install eclipse color themes plugin (
  2. navigate to window->preferences
  3. navigate to general->appearance->color themes
  4. click restore defaults, then click apply

that should take care of it.


the settings of plugins, including the core ones, are saved in the [workspace_dir]/.metadata/.plugins directories ([workspace_dir] refers to the workspace directory you use).

so if you remove the [workspace_dir]/.metadata, you will reset all the properties defined (which will include all the properties, not only the font ones). another idea is to create and use a new workspace. be careful, as your code source may be located in your [workspace_dir]/ directory.

but why don't you just use use system font button in the eclipse properties dialog?


"restore defaults" is not working.

you must remove the all file in the /.../workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/ directory.


it is simple.

first, you open eclipse but with workspace different with workspace you have working. then, you choose file / export / --> general / preferences --> choose to folder which you want to pick the file *.epf

second, you open eclipse with workspace you want to work. then choose file / import / --> general / preferences --> choose to folder which you had picked the file *.epf and ok

have fun!


i encountered this problem also, i went with the second answer, however, i only removed /.metadata/.plugins/org.eclipse.core.runtime/.settings - this way i was able to preserve my workspace settings (source code etc)

going forward i would recommend downloading the eclipise color theme plugin from - this allows you to switch between a range of color themes easily, and easily switch back to 'default'


i followed the instructions of ronan on this one and worked well.

rm -r $workspace_dir/.metadata/.plugins/org.eclipse.core.runtime/.settings/

relaunch eclipse.

i had installed the an eclipse preference for colours.

one would think eclipse could make it simpler to remove preferences than this manual process.


you can reset to the default color scheme in the window>preferences options page. this example will be for resetting a theme used for java.

navigate to windows>preferences>java>editor. click on syntax coloring. click "restore defaults" and "apply". then, navigate to general>editors. click on text editors. click on "restore defaults" and "apply".

i had the same issue and the above steps cleared up my problem. also, the show line numbers check box is on the last page from above.

Related Query

More Query from same tag