Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When typing in Open Resource dialog, is there a way to find files by directory instead of just the file name?

Tags:

eclipse

ide

I have been using extensively Ctrl + Shift + to find and open files in my Eclipse project. But sometimes I know the directory where my files are (or part of it) but I don't know exactly their names.

When doing search, it seems it only takes into consideration the name of the files, and not their paths. I'd like to be able to refine the search by path.

For instance, if I have a folder X with 3 files in it, I'd like that typing X would bring up the 3 files, so I could choose them. Or that it'd actually let me select the X folder itself!

Is there a way to do this in Eclipse?

like image 369
devoured elysium Avatar asked Apr 22 '11 04:04

devoured elysium


People also ask

How do I search for a folder 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 open resources in eclipse?

We can access it in two ways: Using the keyboard shortcut, which is Ctrl + Shift + R on a PC or Cmd + Shift + R on a Mac. Opening the menu under Navigate > Open Resource.


1 Answers

  • Use Ctrl + Shift + R to bring up the 'Open Resource' dialog
  • Type *X/ to list all files in the folder X. Ex search: *myDir/myFile.
    Important: the preceding asterisk (*) is required to make the search apply to folders and paths too.
like image 165
Deepak Azad Avatar answered Sep 25 '22 01:09

Deepak Azad