Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search for all files in project containing the text 'querystring' in Eclipse

Tags:

eclipse

I work in Dreamweaver and Eclipse when developing. I think Dreamweaver has a really nice search where you can search for text within all files of your current project.

This is handy when you want to remove a function that is called in a lot of files. You can just search within the current local project. You can choose whether to search within text or in the source code.

Does Eclipse have such a feature to find all files that have the word 'querystring' in them?

like image 983
Saif Bechan Avatar asked Oct 06 '22 19:10

Saif Bechan


People also ask

How do I search text in an entire project in Eclipse?

Ctrl + Alt + G can be used to find selected text across a workspace in eclipse. Show activity on this post. Press Ctrl + H to bring up the search that includes options to search via project, directory, etc.

How do I search all files 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 text in a class file in Eclipse?

Ctrl + H will bring up a Search/Find dialog. One of the tabs is Java which will let you specify what exactly you are looking for e.g. Class/MNethod etc.

How do I search annotations in Eclipse?

Try: CTRL-H -> File Search, check Case Sensitive and Regular expression, and input: @[A-Z] for Containing text.


3 Answers

Yes, you can do this quite easily. Click on your project in the project explorer or Navigator, go to the Search menu at the top, click File..., input your search string, and make sure that 'Selected Resources' or 'Enclosing Projects' is selected, then hit search. The alternative way to open the window is with Ctrl-H. This may depend on your keyboard accelerator configuration.

More details: http://www.ehow.com/how_4742705_file-eclipse.html and http://www.avajava.com/tutorials/lessons/how-do-i-do-a-find-and-replace-in-multiple-files-in-eclipse.html

alt text
(source: avajava.com)

like image 93
Chris Dennett Avatar answered Oct 21 '22 00:10

Chris Dennett


press Ctrl + H . Then choose "File Search" tab.

additional search options

search for resources: Ctrl + Shift + R

search for Java types: Ctrl + Shift + T

like image 44
shiluka Avatar answered Oct 20 '22 22:10

shiluka


Ctrl+shift+L opens the Quick text search window

like image 34
cesarggf Avatar answered Oct 20 '22 23:10

cesarggf