Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change highlighted occurrences color in Eclipse's sidebar?

When you have "Mark occurrences" enabled in Eclipse, placing the cursor on any type/variable/method/etc will highlight all occurrences in the text editor and place a faint bar in the right ruler to show you the location of other occurrences in the file.

Does anyone know where in the Preferences you can change what color is used to highlight the other occurrences in the side ruler? The color is way too faint for me with my current monitor/Windows Aero theme.

I tried to go into Preferences > General > Appearance > Color and Fonts change the color for "Color labels - match highlight" but this didn't seem to apply.

Here is a screenshot with what I am talking about:

Eclipse screenshot

like image 221
matt b Avatar asked Feb 09 '10 17:02

matt b


People also ask

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 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 occurrences in eclipse?

Press ctrl + f for windows computer. Then under FIND, type what you want to find. Then in REPLACE WITH, type in what you want to replace it with. Then click REPLACE ALL.

How do I get rid of red and green highlights in eclipse?

For Clover you can hide the colors in the java editor by going to "Clover | Coverage Explorer" -> Coverage in Editors > Show None. Hides all red/green coverage areas in open Java editors.


1 Answers

The color in the bar is the same as the color the text is highlighted with in the editor. It is set by going to

Window > Preferences > General > Editors > Text Editors > Annotations

and changing the Occurrences and Write Occurrences colors.

like image 79
ColinD Avatar answered Sep 29 '22 09:09

ColinD