Unable to highlight text/variable in eclipse [duplicate]
My Eclipse IDE wouldn't highlight similar text/variable in Java code, till yesterday it was working fine. Today if I click on a variable inside a class it would not highlight same variable present elsewhere in class. 开发者_StackOverflow中文版Should I enable any thing in IDE?
Please check
'Toggle Mark Occurrences' enabled (It is in the tool bar or use shortcut Alt + Shift + O).
Checks the preference. Go to 'Preference' then navigate to 'General --> Editor --> Text Editors --> Annotations --> Occurrences'.
I found the answer, I had to toggle mark occurrences alt+shift+o. If any one faces this issue you can try this to fix it.
Make sure Preference - > Annotations - Occurrences Text as checkbox list value should have selected Highlighted.
精彩评论