Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly find file in the workspace/switch between buffers/etc. in Eclipse?

I am looking for something like Textmate's fuzzy search on Command-T, FuzzyFinder in Vim, or Ido in Emacs. Does it exist? If no, how do you prefer to do it?

like image 871
Alexey Romanov Avatar asked May 17 '10 08:05

Alexey Romanov


People also ask

How do I search for a file in Eclipse workspace?

Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.

Where are Eclipse files stored?

- [Voiceover] When we first installed Eclipse, and we launched it for the first time, do you remember the prompt that it asked you where you wanted to store your files? It automatically defaults to the C drive, to users, your username, and it creates a folder called Workspace. That's where your files are located.

How do I search for a text in a class file in Eclipse?

You can also use the Ctrl + H shortcut to search files in Eclipse project.


2 Answers

CTRL + SHIFT + r will search each for any "Resource" (file), anywhere in your project

CTRL + SHIFT + e will search for a specific open file (ie. your buffers)

CTRL + SHIFT + PageUp/PageDown will navigate to the next/previous open buffer

CTRL + SHIFT + Left/Right will navigate backward/forward in your browsing history

(eg. if you went from tab 1 to tab 5 to tab 2 and then hit CTRL+SHIFT+Left, you'd go back to tab 5; you could then hit CTRL+SHIFT+Left to go back to tab 1, or ...+Right to go back to tab 2)

Hope that helps.

like image 86
machineghost Avatar answered Sep 17 '22 16:09

machineghost


Ctrl+3 gives contextual text search across editors, commands and preferences. I only recently discovered this one - not sure if it was a new feature with Eclipse 3.5.

like image 30
SteveD Avatar answered Sep 19 '22 16:09

SteveD