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?
Asked
Active
Viewed 6.6k times
115
-
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 Answers
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.
-
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
-
-
1