When I use the File Search option in Eclipse, when I get multiple results and I'm not sure about which file is the one I am looking for, I open a couple of them. However, File Search option "shares" the same tab and when opening the second file, it replaces the file that was opened first.
Is there a way to prevent this behaviour and get each file to open in its own tab?
In 'Preferences' go to the 'General > Search' page.
The 'Reuse editors to show matches' option controls using a single / multiple editors for search results.
Related
I am having a trouble with VS code. I would like to save the search results so I can get back to it again. specially since there is a lot of results and I do delete/filter them manually by clicking on x dismiss button.
I used the Open in editor, which open new tab with all results however it's not useful since I can browse the results quickly or reopen it again in the search pane.
Regards,
From I believe version 1.41 of VSCode you have a separate search editor which I guess will do what you're looking for.
Just open you command palette and search for "Open search editor". You will be presented with a couple options (open and open to the side).
When you have some search results which you want to save, you can click on the "Open in Editor" link shown next to the results summary.
This will open a text file with the similar search bar on top, and your current search results will be loaded in a text file format. You can press Ctrl-S or use File > Save to save it in a .code-search file.
You can close and re-open this file any time to view the results. You can click "Search Again" to refresh the results (note, this will lose any customization and bring back dismissed results). You can use Ctrl-click to jump to files or lines mentioned in the search results.
Unfortunately you cannot reload this back into the search pane (AFAIK). However, since Editor pane can be split, you can split this file's editor to a separate pane on the side, and close the Search pane.
I would like that each time I open a reference to another file, Eclipse will be forced to open the file in a different editor, even if the current editor has already a tab with that file.
The motivation is that I hate when I click CTRL+Left Click (or just F3) to open a reference to a variable/function/class and such... it uses my current editor to open the file, drives me nuts because I have 6 different editors open in my workspace, and I would highly like them to be utilized.
An image for illustration, in this image Eclipse is open with 4 different editors.
Any ideas?
To me it sounds like this is what you like to do:
Eclipse: Files opened by multiple searches using same editor tab
"Disable the option
Preferences > General > Search > Reuse editors to show matches"
Although this will not open a second tab for an already opened file.
Sounds like you might have limited the number of open editors in your preferences, causing them to be recycled.
I constantly use Eclipse's find-in-file feature this way:
Search->File->File Search tab.
When I get a list of files containing my search string, these files shows in the bottom pane. When I click, in the bottom pane, the line in a file that contains the search string, the file is always opened in the same file editor tab, and so the file I opened earlier that contains the search string is gone. I am hoping to open several files at the same time that contain the search string.
Thanks for help!
On the Search preference page, uncheck the box for Reuse editors to show matches.
When using Eclipse on a large, collaborative project, I use the Search utility to find occurrences of objects and strings across the files in the Workspace. Whenever clicking on the search button in the toolbar, the dialog defaults to the C/C++ Search tab. However, 99.9% of the time, I need the File Search tab.
This page hints on how to set the keyboard shortcut Ctrl+H to open the File Search tab, but I am habitually using the mouse to open that dialog.
Is there a way to configure the Search button to open in the File Search tab?
Use the check box Remember last used page, found under the button Customize...
In eclipse, when i do a global search (open search dialog), i can get a list of results.
However, when i open these results, eclipse will ever only open one file at a time. That is, given results:
A
B
C
i can double-click on A and will see that file. However, if i then double-click on B, file A will be closed, and replaced by B
I'd like to be able to read both files (or as many files as i care to double-click on)... how can i do this?
Go to Preferences > General > Search
Unselect the box marked "Reuse editors to show matches"
Click Ok.
That should do it.