Accepted answer

at the top level menus, select 'search' -> 'file search' then near the bottom (in the scope) there is a choice to select the entire workspace.

for your "file search has encountered a problem", you need to refresh the files in your workspace, in the project/package explorer, right click and select "refresh" at any level (project, folder, file). this will sync your workspace with the underlying file system and prevent the problem.


in your eclipse editor screen, try control + shift + r buttons.


goto search->file

you will get an window, you can give either simple search text or regx pattern. once you enter your search keyword click search and make sure that scope is workspace.

you may use this for replace as well.


press ctrl+shift+l and type your string


eclipse instasearch plugin is a very useful plugin for search needs inside eclipse. it is based on lucene. this is also available in eclipse marketplace.

it has extensive feature set.

  • instantly shows search results
  • shows a preview using relevant lines
  • periodically updates the index
  • matches partial words (e.g. case in camelcase)
  • opens and highlights matches in files
  • searches jar source attachments
  • supports filtering by extension/project/working set


for mac:

quick text search: shift + cmd + l

enter image description here

all other search (like file search, git search, java search etc): ctrl + h

enter image description here


a lot of answers only explain how to do the search.

to view the results look for a search tab (normally docked at the bottom of the screen):


ctrl+ h, select "file search", indicate the "file name pattern", for example *.xml or *.java. and then select the scope "workspace"


eclipse does not search if the "file name patterns" field is empty.
so, if you want to search some text, write within "containing text" field and leave
by default "file name patterns" with asterisk (*).

enter image description here


press ctrl + h, should bring up the search that will include options to search via project, directory, etc.

ctrl + alt + g can be used to find selected text across a workspace in eclipse.

Related Query

More Query from same tag