score:115

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.

score:0

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

score:1

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.

score:1

press ctrl+shift+l and type your string

score:2

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

score:2

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

score:4

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):

score:5

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

score:5

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

score:46

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