How do I hotkey directly to File Search tab in Eclipse

svrist picture svrist · Sep 18, 2008 · Viewed 36.4k times · Source

When I use CTRL+H I end up on the Java Search tab. I would very much like a shortcut to go directly to File Search instead. Is that possible?

See image here for what I'm talking about: enter image description here

Answer

Martin picture Martin · Sep 18, 2008

You can just define a key binding that opens the file search:

  1. Go to Preferences > General > Keys
  2. Type "file search" in the search box. (If there are no results, and you have a really old Eclipse version, select the Include Unbound Commands check box.)
  3. Put the caret into the Binding text box and press the key combination you want to use:

enter image description here

You can either re-use the CTRL+H binding (delete the other binding in that case) or define another one (e.g. CTRL+SHIFT+H). To delete the other binding search for "Open Search Dialog" and click on Unbind Command.


Other solution: You could press CTRL+3 in your editor, type in "file s", press Enter. The next time you press CTRL+3 "File Search" is at the top.