Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse highlight occurrences, right column marker color

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.

like image 653
daveb Avatar asked Nov 03 '09 22:11

daveb


People also ask

How do you highlight occurrences in eclipse?

Glance does not work anymore, but in current Eclipse Versions (Eclipse 2020) you can highlight any word by selecting the word and pressing CTRL+F.

How do I change the highlight color in eclipse?

Open Preferences, and navigate to General->Editors->Text Editors->Annotations. Select Occurrences, and change the color to whatever you like..

How do I change the color code in Eclipse?

Eclipse Color Theme makes it possible to switch color themes conveniently and without side effects. After the installation, go to Window→Preferences→General→Appereance->Color Theme to change the color theme.


2 Answers

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)

like image 175
VonC Avatar answered Oct 14 '22 16:10

VonC


In Kepler 4.3 we can change the colour of occurrence as follow:

General -> Editors -> Text Editors -> Annotations -> Occurrences

enter image description here

like image 45
rns Avatar answered Oct 14 '22 17:10

rns