Double Clicking Highlighting
In Notepad++ if you double click a word to highlight it, all the occurrences of the word in the file are also highlighted, a feature that is quite handy for finding where variables are declared开发者_C百科/used.
Does the eclipse editor have this functionality? :) If so, how can I turn it on?
For the Eclipse Java editor, you can go to Window->Preferences in the menu, then Java->Editor->Mark Occurrences in the options tree and check off anything you want highlighted in this way.
Note that the editor understands Java scoping rules, so if you have 2 local variables with the same name in two different functions, it will only highlight within the current function.
I found a plugin called eclipse-glance that searches like notepad++ but without double-clicking
http://code.google.com/p/eclipse-glance/
Closest to original what I have found is alt-shift-O
For activate double click hightlighting in Eclipse:
activate double click hightlighting in Eclipse
For change color of double click hightlighting in Eclipse:
change color of double click hightlighting in Eclipse
精彩评论