When opening the second file through search in eclipse, the first file is closed by itself

Today I encountered a very strange problem when using eclipse for development:
The problem is this:
In eclipse, I want to find a file that uses xxxservice, so I search-file- and then find the search result (we call it "the first file"), I double-click the searched file in the search result to open it for viewing.
When I use the same search function to search for another file (we call it "the second file"), when I double-click the "second file" to open it and then want to see the "first file", I find the first file gone (there is no "first file" in the list of open files).
That is to say, by default, only one file found by search can be opened. When you search for another file and then open it, the file that was searched and opened before is automatically closed and cannot be found.

Solution:

window-preferences-General-Search
Find an option on the first line Reuse editors to show matches
What he means is that the matching files are displayed in the same editor. If there is a matching file later, the previous one will be overwritten. We remove the check mark in front of it to display it in a different editor, and it will be OK.

Then go to eclipse to open the two searched files and try? The test proves that it can be used

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327005104&siteId=291194637