Double Clicking Highlighting
Asked Answered
N

4

24

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/used.

Does the eclipse editor have this functionality? :) If so, how can I turn it on?

Noleta answered 12/8, 2010 at 16:35 Comment(0)
W
37

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.

Wiltz answered 12/8, 2010 at 16:38 Comment(3)
I don't know that there is a general purpose word-highlighter built in (i.e. ships with a default download package) to Eclipse. You'll probably have to find a plugin. There are most certainly equivalents out there for other programming languages. Try searching marketplace.eclipse.org.Wiltz
Superb, resolved it in no time, The right link and thanks for the answer TomJustin
Good question, Great answer.Lighthearted
D
6

I found a plugin called eclipse-glance that searches like notepad++ but without double-clicking

http://code.google.com/p/eclipse-glance/

Diaphysis answered 23/2, 2011 at 17:3 Comment(2)
This seems to be the closest behavior to Notepad++. I mapped one of my extra mouse buttons to the "Ctrl+Alt+F" combination to more quickly use this plugin. Still not quite as convenient as Notepad++.Sagamore
eclipse update site referred while installing from above said link doesn't work now. follow workaround mentioned in [link] (#39358454)Fusilier
S
5

Closest to original what I have found is alt-shift-O

Seineetmarne answered 12/5, 2012 at 12:52 Comment(0)
I
1

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

Indreetloire answered 1/11, 2016 at 12:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.