Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search in Eclipse through project

Tags:

eclipse

How to search in Eclipse through project for some word ? When I start CTRL-h I need to choose field, method or ...., but I need to find all occurences in project no metter method, field or .. ! How to achieve that ?

like image 626
JaneNY Avatar asked Dec 17 '10 09:12

JaneNY


People also ask

How do I search text in an entire project 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 search for a class in Eclipse project?

Using the keyboard shortcut, which is Ctrl + Shift + R on a PC or Cmd + Shift + R on a Mac.

How do you search an entire project?

Find the search string in a projectPress Ctrl+Shift+F or select Edit | Find | Find in Files from the main menu. In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F .

How do I search project explorer in eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.


1 Answers

CTRL + H -> File Search -> Containing Text 'some word'
make sure the scope is set to workspace or enclosing projects. Choosing Selected Resources will narrow the result set to the folder or file you selected in the explorer.

Further if you know the file type that might contain the text you can use the File Name patterns with values like *.php, *.phtml, *.html

like image 198
Moak Avatar answered Nov 07 '22 07:11

Moak