Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why would eclipse not show search results inside file in results list?

Tags:

search

eclipse

We have one installation of Eclipse which does not show the individual lines on which search results occur as do all other installations, as shown here:

alt text

How can we turn on this feature so that individual results in each line are shown?

like image 547
Edward Tanguay Avatar asked Dec 15 '10 14:12

Edward Tanguay


People also ask

How do I search everything in Eclipse?

Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.

Why methods are not showing in Eclipse?

Open Eclipse Preferences. Go to Preferences > Java > Editor > Content Assist > Advanced. Make sure that Other Java Proposals is selected in the list of proposal kinds.

How do I search for a text file in Eclipse?

You can also use the Ctrl + H shortcut to search files in Eclipse project.


1 Answers

I think it's a question of what tool you are using. If you do a text search, you get one line per hit. But if, say, you look for references to a Java method, you get one line per file.

Although it seems like a perfectly desirable thing, I can't find any way to get Java search to return one line per hit.

like image 116
Ladlestein Avatar answered Sep 22 '22 23:09

Ladlestein