fatherazrael
fatherazrael

Reputation: 5957

How to search for file and file contents in Eclipse?

I was using Netbeans and find the search is fairly simple, just right click and click on Find. It searched for file name as well as contents.

Just moved to Eclipse Mars2, there is no find on right click of project.

Netbeans Eclipse

There is Search on menu (CTRL+H) and when i clicked

Eclipse Search

In eclipse, I have multiple projects and i tried to search text in single java project but it keep on searching on multiple projects even if my project is selected.

Could anyone provide me direction for easy search in eclipse?

Upvotes: 0

Views: 665

Answers (1)

user3487063
user3487063

Reputation: 3682

select the project you want and do ctrl+H (or Search->Search), select second tab(File search). Make sure "Selected resources" is selected. This searches for the containing text in all files matching the provided file name patterns in the selected project. enter image description here

Upvotes: 1

Related Questions