Accepted answer

thanks to the other two solutions, but here is the complete answer i was looking for, which addresses how i search all the text within the files, not just types, methods, packages, constructors, and fields:

  • ctrl+h to open the "search" dialog box
  • "file search" tab, if it does not appear, expand the window or use the left/right arrows
  • type in the text to search for
  • use "*.java", in my case since i am coding in java, to search just these files
  • click "search"


ctrl+alt+f (find text in project -customized key)

note - ctrl+alt+g is for find text in a workspace, not in a project

how to customize this key

window->preferance->general->keys-> search for 'find text in project'->type 'ctrl+alt+f' in binding ->apply

note - this will be helpful if the developer is working on multiple project simultaneously.


as pointed out, ctrl + h opens the search dialog.

since i use only find in files (and set file name patterns when needed), i clicked on customize... button on the bottom of the search dialog. it opens search page selection dialog, where i turned off all other options.

you can also click on remember last used page in the same dialog.


i believe adding plug-ins power your needs.

if you install plug-in named instasearch it makes your searching faster inside current active working projects.

it shows the result as you type.


source: eclipse: default to "file search" tab in search dialog

  • go to your key bindings windows > preferences > general > keys
  • unbind the shorcut "ctrl+h" for the "open search dialog"
  • filter/search for "file search" and use the "ctrl+h" here instead.


press ctrl + h . then choose "file search" tab.

additional search options

search for resources press ctrl + shift + r

search for java types press ctrl + shift + t


yes, there is shortcuts for searching eclipse, these shortcuts are very useful when we search for particular html, jsp , xml, java, properties ,class, jar,search file with keywords.

  • ctrl+h is used open tag, in that you can select type of file remote search, file search, git search, java search, javascript search , etc
  • ctrl+shift+r is used to search all files in the current project
  • ctrl+shift+t is used to search all files in the workspace


if you want to use the type-specific search (java, javascript ...etc) you can use ctrl+h, which opens the search dialog, then click the search button.

if you simply want to search for all text occurrences in the whole the workspace click the word (or select the text) you want to search then hit ctrl+alt+g. you will directly get all the found occurrences without even using a dialog box.

i find ctrl+alt+g is the best solution because it shows the variable name in different by related files (e.g. java and xml, or javascript and html) while still having the type-specific search feature available through ctrl+h

you can rebind the ctrl+alt+g to finding text in a project or a working set instead of the whole workspace if that's more appealing to you.


  • ctrl+h to bring up the search box
  • click 'customize' in the lower left
  • checkmark 'remember last used page'
  • click ok.
  • select the file search tab and do a search


if you are using only the file search, you can disable all other searches in the search panel (customize... lower left corner). then you have the file search everytime you press ctrl+h


select workspace and press ctrl-h

which dialog is selected, depends on which file type is selected in the project explorer view. for example, if you selected a .js file and press ctrl-h, it will bring up the dialog with the "javascript search" tab selected. if you want to search all files, you can press ctrl-f7 to select the project explorer view, use arrow keys to select a folder above your files, then press ctrl-h (or select a file, whose type doesn't trigger a custom dialog tab).

Related Query

More Query from same tag