Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: quick search on filename

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?

like image 711
Aleksandr Kravets Avatar asked May 17 '12 14:05

Aleksandr Kravets


People also ask

How do I search for a filename in Eclipse?

The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.

How do I make Eclipse search faster?

Eclipse Quick Search is a fast and easy to use "search as you type" text search tool. Open with Cmd-Shift-L, type your search and see results immediately.

What is the shortcut key for search in Eclipse?

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 .


1 Answers

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.

like image 157
Rangi Lin Avatar answered Sep 25 '22 07:09

Rangi Lin