Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse doesn't highlight references anymore

Tags:

eclipse

I have an odd problem. In Eclipse Ganymede, I used to be able to highlight a variable, and it would highlight the use of that variables in that method. However through some action I have now disabled it. Is there a way I can enable it?

I tried searching Google, but since I don't know what the feature is called, its kinda tough.

Its a really useful feature, and its annoying that its not working.

like image 935
Gerrie Avatar asked May 28 '09 07:05

Gerrie


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 turn off highlighting in Eclipse?

Alt + Shift + O disables and enables this feature, which is called Mark Occurrences. There is also a toolbar button to toggle it on and off.

How do I change the highlight in eclipse?

If you're using eclipse with PHP package and want to change highlighted colour then there is slight difference to above answer. Go to General > Editors > Text Editors > Annotations. Now look for "PHP elements 'read' occurrences" and "PHP elements 'write' occurrences". You can select your desired colour there.

Why is my code in Eclipse highlighted?

This is activated because of code coverage. If you want to remove it then follow these steps. Go to "Windows -> Show View -> Coverage" Select it.


1 Answers

There's a little "highlighter" icon on the toolbar - it toggles "Mark Occurrences".

From the preferences window, the feature you mean is configured by navigating to:

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

screen shot

like image 99
Rytmis Avatar answered Oct 02 '22 15:10

Rytmis