51

I want to search a file in Eclipse. What's the shorcut to open file search dialog box?

2
  • 2
    First result on Google allapplabs.com/eclipse/eclipse_shortcuts.htm Commented Jun 2, 2010 at 12:52
  • 1
    As BalusC and echox explained, there is no predefined keyboard shortcut for file search, so you can't find the answer by simply looking at the menu tree... I think, those many downvotes are a little too hard. Unknown downvoters, please have a look again... Commented Jun 2, 2010 at 13:08

4 Answers 4

129

If you want to search in files: Ctrl+H and then choose tab File Search.

If you want to search for resources: Ctrl+Shift+R.

If you want to search for Java types: Ctrl+Shift+T.

If you want more shortcut keys: Ctrl+Shift+L.

Sign up to request clarification or add additional context in comments.

4 Comments

After having pressed Ctrl+H, the File Search tab may not be visible (at least this is the case in Eclipse Neon), in which case one has to press the small arrow to the top right to bring out the hidden panes.
This answer is not correct as it does not answer the question. The question was NOT, how can I find a file that contains a certain text. The question is: I want to search a file in Eclipse. What's the shorcut to open file search dialog box?
Ctrl+Shift+R would be the correct answer, the other parts of the answer distract from the core answer, I think
It's the correct answer when you want to search for resources.
12

There is no default shortcut to open the "Search a File" dialog directly.

Anyway you can use CTRL + H to open the "Search Dialog".

You can also use CTRL + Shift + L to open the "Key Assist" which will show you all configured shortcuts as a kind of tooltip.

Pressing again CTRL + Shift + L in the "Key Assist", you can directly configure your own shortcuts. Enter "File Search" for the filter and simply set your own key combination.

I often search for a file and want also to open it directly. So I use the "Search for Resource" Dialog called with CTRL + Shift + R.

1 Comment

CTRL + Shift + R is so handy in locating a specific file in the opened projects.
4

Use the Window->Preferences menu and select the General-Keys tab to see and change any key binding.

Shortcut for this: Press two times CTRL + Shift + L

Comments

2

There's also a plugin called MouseFeed that shows all keyboard shortcuts for the menu operations you do. You could even set it to prevent you from using the menu alternative and force you to use the shortcut.

A good way to help you become quicker at using Eclipse.

Edit: The domain associated with the plugin seems to be gone now and replaced with a porn site. So at this point the status of the plugin is a bit unsure :)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.