Reputation: 3770
how can I search something in all files in a given folder in eclipse also how can I search up, it's seems like only going down the document
sometimes I am working on single files, so there is no project defined. I know about the search in project feature
Upvotes: 28
Views: 47687
Reputation: 400
In MAC I use, control+H (^H), it opens a window, where you can search for any text within all the files.
Upvotes: 0
Reputation: 10505
When you are searching "Java Resources" with "File Search" with "Selected resources" checkbox checked - you will not get any results.
To search recursively a chosen folder for any files:
Good luck
Upvotes: 4
Reputation: 1601
Read all the answers above but couldn't figure out the solution working for me. Finally gave a thought process keeping in mind all the solutions provided here and voila it worked for what I'm looking here. Thanks stackoverflow, this site is awesome.
Solution I worked out: Goto Navigator window in eclipse, select the folder where you want to perform the search operation, now click Alt a & f (shortcut) which opens the file search window. Now select the option "Selected resources" in 'scope' section and hit 'Search' button.
Upvotes: 0
Reputation: 29
If you want to search for anything without telling Eclipse what it is, use ctrl+shift+L (QuickEclipseSearch). This is the quickest way. You can also use 'file search' (press ctrl+H) and navigate into file search using left and right arrrows on the top right corner of your windows. Or type 'file search' in the 'Quick Access' window. If you are looking for a specific method, package, field,type or constructor use JAVA search.
Upvotes: 1
Reputation: 11741
If default eclipse search is not sufficient for your needs, eclipse instasearch plugin is a very useful plugin for search needs inside eclipse.
It is based on lucene. This is also available in eclipse marketplace. It has extensive feature set.
Upvotes: 2
Reputation: 3259
Use the Remote Search Feature. Here you can browse for local folders. Some stupid name...
Upvotes: 2
Reputation: 1466
If you want search in a particular file then just press ctr+F and type whatever you want to search in that current file.
Upvotes: 0
Reputation: 421280
I reccomend that you learn the short-cuts for these tasks. (Key-combination is found right beside the menu-item.)
Upvotes: 8
Reputation: 20324
If you go to Search>Files... you'll have an advanced search dialogue where you amongst others can specify the scope to search in (all of the workspace, selected resources only etc.). Is this what you're looking for?
And also, if searching through a single file (+), you have the standard search dialogue where you can specify search direction to either forward or backward.
Upvotes: 22