Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching a string in eclipse workspace

Tags:

eclipse

How to search for a string in the complete eclipse workspace? I was not able to locate a text in the eclipse workspace however I could not find the specified string in the workspace.

like image 524
MindBrain Avatar asked May 03 '12 04:05

MindBrain


People also ask

How do I search for text in a File 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 variable in Eclipse?

Yes you can. In Eclipse, Select menu Search and again Search . In Tab Java Search you can select what you are looking for (i.e method, type, package, field, ...) and where to search. Regards.

How do I search for specific packages in Eclipse?

Click on the root package and start typing the name of the package you are looking for. Show activity on this post. Ctrl + Shift + T works for packages too: Just type the package name and then a dot and it will show all classes in matching packages.


2 Answers

At the top level menus, select 'Search' -> 'File Search' Then near the bottom (in the scope) there is a choice to select the entire workspace.

For your "File search has encountered a problem", you need to refresh the files in your workspace, in the Project/Package Explorer, right click and select "Refresh" at any level (project, folder, file). This will sync your workspace with the underlying file system and prevent the problem.

like image 149
Francis Upton IV Avatar answered Sep 22 '22 14:09

Francis Upton IV


Press Ctrl + H, should bring up the search that will include options to search via project, directory, etc.

Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.

like image 39
Jainendra Avatar answered Sep 22 '22 14:09

Jainendra