Java – Eclipse does not highlight matching variables

eclipsejava

Eclipse does not highlight matching variables for me:

enter image description here

I've already tried to change "Mark occurrences" via

Window -> Preferences -> Java -> Editor -> Mark Occurrences

but it didn't work. I am not sure why this is not working while others
have been able to fix the problem.

Can anyone tell me how can I set highlighting matching variables?

Looking for same variables with my eyes really bothering me too much.

Best Answer

Try:

window > preferences > java > editor > mark occurrences 

Select all options available there.

Also go to:

Preferences > General > Editors > Text Editors > Annotations

Compare the settings for 'Occurrences' and 'Write Occurrences'

Make sure that you don't have the 'Text as higlighted' option checked for one of them.

This should fix it.