Eclipse: Files opened by multiple searches using same editor tab
Solution 1
Disable the option
Preferences > General > Search > Reuse editors to show matches
Solution 2
Above is the best answer. But since I don't always want to open the search result in a new tab I usually use something like this.
right click on the result -> Show In -> Package Explorer ->(file is now automatically selected)->Press 'Enter'
More simply
Select the result -> alt + shift + w -> Package Explorer -> press 'Enter' twice
digiarnie
Updated on November 13, 2020Comments
-
digiarnie over 3 years
When using the "file search" function in eclipse to find a bit of text in a ".java" file, I may get a list of several search results. Let's say I double click on the file "A.java" which then opens A.java in a new editor tab. If I then use the "file search" function again to find some other bit of text and this time double click on the file "B.java", this file will replace "A.java" in the editor.
I'd like Eclipse to open a new editor for B.java so that both A.java and B.java are available in my editor tabs. Is this possible? I've had a look around in the preferences but I'm not sure what option would give me this bit of functionality.
-
Arashsoft about 8 yearsI think this answer is more useful because it allows you to open a specific result in a new tab.
-
Ankit Vij about 6 yearsThis has been seriously annoying. Glad that I landed on this page and found a quick soulution :)
-
Lucas Moyano Angelini over 5 yearsyou changed my life! hahaah
-
Chris Tarpy almost 3 yearsAwesome! Its the little things in life :-D