the currently opened files simply aren't considered special in eclipse - you have far more advanced methods of organizing your files: projects and working sets.

working sets allow you to define sets of files, which can be used as constraints for many operations. you have to define them explicitly, but then they don't change just because you've closed a file.


there is no find-in-open-files command in eclipse, no.

i think that the main reason find-in-open-files is not implemented in eclipse is probably because the set of open files is for many users rather insignificant. (in fact, i don't know (or care) which files i have open. (i even have eclipse set to automatically close editors/files when they become too many). if i want to navigate to a file, i open it. limiting a search to the files i currently have open would be completely pointless for me.)


this may come too late for the original poster, but just in case somebody else needs to find out an answer, i had the same problem and found my solution by installing a plug-in named instasearch. you can get it by going to help/eclipse marketplace and searching for instasearch.

you can find more about this plug-in in the following address.


spring produces a stand-alone eclipse plugin (no dependencies on spring) called quick search

for efficiency, it searches your open files first. so while it isn't purely restricting to opened files as you requested, you can still get a similar effect in practice by just clicking the first results that come up.


there's no way to do that at the moment.

the easiest solution would be to select your files manually (holding ctrl + click on file) and to specify "selected resources" as your search scope.


ctrl+e on windows or linux, and command+e on osx.


closest way is selecting several resources in navigator or package explorer view, then press ctrl+h and choose 'selected resources' radio button. it will limit search only to selected files.

Related Query

More Query from same tag