How to change the highlight color in autocomplete box in Eclipse

Posted on Nov 9, 2022

Question

I can't find a way to change the color of the highlighted selection in the autocomplete box in Eclipse.

enter image description here

As you can see from the screenshot white text on light gray background is not very readable.


Ubuntu 11.10 with Unity and Eclipse Classic


Update: This is system dependent, indeed. Changing the Ubuntu theme changes this color. There are settings about this in /usr/share/themes/Ambiance/, but I can't figure out which one. The background is a gradient, so picking the color and grepping for it does not work.

Answer

This problem can also be fixed from within Eclipse, as is described in the blog post Fix Eclipse colours in ubuntu 12.04.

  1. Go into the Preferences (Window -> Preferences)
  2. Choose General -> Appearance from the left menu
  3. Uncheck the checkbox Use mixed fonts and colours for labels

Before

the bad colored code completion window in eclipse

After

enter image description here