Why would eclipse not show search results inside file in results list? - 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:
How can we turn on this feature so that individual results in each line are shown?

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.

In the preferences of the Search window (usually button with triangle icon) choose "Show as List" item

Related

How to get a list of all files matching search criteria in VSCode?

As per the answers in this question, there are two primary ways to search for files in VSCode:
By using CTRL/CMD + P/E to search and "go to file"
By clicking anywhere in the explorer tree and typing
Why do the above solutions not suit my needs?
I need a way to search for files and get a full list of them (in plain view) so I can easily scan them.
The 1st method returns only partial results unless I scroll down.
The 2nd method only searches the folder tree that's currently open.
I know I can use the find command in Linux to achieve this, but can I achieve something similar in the editor itself?

How customize results in Recoll?

Please tell me how to display in the result sheet the full string of the word you are looking for, and not in pieces as in default in Recoll,I'll try in more detail:
I have recoll installed on my computer (which uses Xapian).
There are so many files.
I want to use recall as an alternative to grep
I indexed my data and search, but in the resultant window I do not like the output:
I want the whole row to be highlighted as if in a grepe, where I have the search word and output it immediately to the Result Sheet.
And now it looks like it gives out a piece of text where the searched word is found, but only partially, then it is divided by several points and again a piece of text, and again. You can see an example in the image, for example here (default settings) https://i0.wp.com/www.linuxlinks.com/wp-content/uploads/2018/01/Screenshot-Recoll.jpg?resize=768%2C596&ssl=1
This is how recoll works. It shows you "snippets" of text around the search hits. You can adjust the snippets parameters (size and number of context words) in the preferences Gui Configuration, Search Parameters section. You can also hit Preview, and then shift down/up arrows, to browse the result documents previews, for a more complete view.

Rename error in the eclipse while using the ALT+Shift+R?

I tried to select the word that want to replace for multiple times and it did not. Finally I had to close the eclipse and start it.**
Rename (Alt+Shift+R) is a refactoring option. E.g. this could be used to rename a class or a method without renaming classes/methods with the same name but in different packages/classes if it was selected.
To search replace words in Eclipse within a single file, the replace option is there in the Find/Replace dialog that shows when you press Ctrl+F.
To search replace across files, go to Search/Search (Ctrl+H), and look for the File Search tab at the top (you normally need to scroll the tabs to the left to see it). This will let you search across a range of files, and then replace those matches.

Search for an exact phrase with InstaSearch for Eclipse

How can I search for an exact phrase in Eclipse instasearch?
When I search for
one two
it will find also files that contain only one. And the file containing the exact phrase is not at the top of the result list.
UPDATE:
#Ad Infinitum suggested to turn off the option:
Find similar matches when no exact matches found
but strangely it does not work as you can see from the screenshot:
Instasearch is already looking for the exact match. However, if it cannot find an exact match, it looks for the alternatives. If you only want to display the exact match, there is an option, which you can unmark the fuzzy search, in the instasearch's preferences.
In order to get the instasearch's preferences.
Window -> Preferences
when the Eclipse's preferences dialog is openned, you can write instasearch in the search text field, which brings you the instasearch preferences.
I hope that is the option, you are looking for.
EDIT
When this option is unmarked, the results will be something like that if there is no match. 0 matches and under of it, there is more selection, which shows the fuzzy search results.

Eclipse Search Results are Missing When there are Exactly 404 Matches?

Specification
Eclipse: SpringSource Tool Suite
Version: 2.9.1.RELEASE
Build Id: 201203221000
What I do:
Search -> File
Containing text: "subheading"
File name patterns: "*, !*jquery.js, !*min.js"
Scope: Workspace
Click 'Search'
What I expect to happen:
The Search tab will show search results for "subheading".
What happens:
The Search tab starts to find results and puts them on the tab.
The number of matches stops at 404 since there are exactly that many instances of "subheading" in my workspace.
The file/directory names of each result turns blank.
My Suggestion For Duplicating:
Make a test workspace with exactly 404 instances of a word.
Search for it.
My Theory:
The developers of Eclipse are messing with me. I hope this isn't true, but I don't see why else it would do this. Can anyone else duplicate this and/or explain it?
Update:
After much more use of Eclipse, this same result seems to randomly occur (file/directory names turning blank). It happens consistently when there are 404 results, but it also happens randomly with other amounts.
For a workaround. I found that I could switch to a different perspective and it gave me my search results back.