Highlight all occurrences of a search string in the Java Eclipse Editor

If you are looking for a line editor in Netbeans Java editor, it automatically selects all occurrences of that line.

But how can I achieve this feature in Eclipse?

(I checked Settings> Java> Editor> Mark Objects, but it looks like this only applies to similar variables, etc., but not for search matches)

+13
eclipse ide refactoring
May 24 '13 at 2:56
source share
3 answers

Have you tried the Glad plugin for Eclipse? fully meet your requirements and even with a large number of functions.

demo and github of this project: http://ystrot.imtqy.com/glance/




UPDATE: Available on the Eclipse Market

http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1012

+14
May 24 '13 at 3:27
source share
— -

You can turn on "Toggle Mark Occurrences" (shortkey is ALT + SHIFT + O ).

For the color of the selected text, you can:

Window-> Settings-> General-> Editors-> Text Editors-> Annotations-> Events

Hope this is helpful.

+5
May 24 '13 at 3:23
source share

eclipse instasearch plugin is a very useful eclipse search plugin. It is based on lucine. It is also available in the eclipse market.

It has an extensive feature set.

  • Instantly displays search results
  • Shows a preview using the appropriate lines.
  • Periodically updates the index
  • Matches partial words (e.g. in CamelCase)
  • Opens and highlights file matches
  • Looks for original JAR attachments
  • Supports filtering by extension / project / working set
+4
Dec 04 '14 at 9:57
source share



All Articles