Eclipse highlight occurrences, right column marker color

daveb picture daveb · Nov 3, 2009 · Viewed 8.1k times · Source

Similar, but different to this question:

I use highlight occurrences a lot, but sometimes I'm irritated by how hard it is to see the little grey-ish rectangles on the rightmost side of the editor - to the right of the scrollbar.

Is there any way to change the color of these markers - looking in General -> Editors -> Text Editors -> Annotations gives me control over the colors of annotations, but it doesn't seem to work for find occurrences. Also, I can right click on the markers and it sends me to the same dialog, but the color still seems to do nothing.

Any ideas?

I'm using the Java editor.

Answer

VonC picture VonC · Nov 4, 2009

It used to take a restart(!) for the color modification to change for certain editors! (as in 2006), due to a bug in Platform UI.
But for current edition (3.4.x, 3.5.1), the General->Editors->Text Editors->Annotations preference page (the Occurrences item) should be enough to change on the spot any color settings you want.
After that, it depends on the nature of the editor (PDT editors used to miss that feature, until bug 166178 was fixed)