115

Very often while working in Eclipse I realize that I remember class name, but forgot in which package this class is. Using Search is not very convenient. Too many clicks and key presses. I wonder, is there a plugin to simplify this process? For example, would be great if there was text-edit box in the top of package explorer which could filter showing packages and .java files depending of entered text. Anyone knows something like that?

thSoft
  • 21,755
  • 5
  • 88
  • 103
Aleksandr Kravets
  • 5,750
  • 7
  • 53
  • 72
  • http://rayfd.me/2007/05/20/10-eclipse-navigation-shortcuts-every-java-programmer-should-know/ <-- great blog post, details this and other time-saving shortcuts for opening files etc. in eclipse – Don Cheadle Oct 19 '15 at 20:09

1 Answers1

217

Eclipse does provide similar functions:

Open Resource Shift+Ctrl+R for all resource files (including Java files)

Open Type Shift+Ctrl+T for all Java classes in classpath.

They also filter the list as you type.

Note that they search all files of all opened projects in current workspace.

Lii
  • 11,553
  • 8
  • 64
  • 88
Rangi Lin
  • 9,303
  • 6
  • 45
  • 71
  • what about fuzzy search like sublime text? This makes you type it exactly and you can't specify folder names to help identify which .js file inside let's say `views/users/form.html` vs `view/companies/form.html` – timbrown Dec 10 '13 at 16:32
  • AFAIK, no such fuzzy search is supported by default, but you can use abbreviation and wildcard character to find files without type exactly full name. And in your example, you should able to see the path of the files under the dialog when you just type `form.html`. – Rangi Lin Dec 11 '13 at 00:56
  • 7
    Shift + Cmd + R / Shift + Cmd + T in Mac – chancyWu Apr 23 '14 at 07:13
  • This does not support R projects – qed Aug 17 '14 at 09:52
  • 1
    Is it possible to expand Project Explorer at the same time? – Xiao Jia Mar 10 '15 at 18:00