Is there a way how to search a file or class (I mean by Ctrl + Shift + T or R) only in some particular project and not in all workspace?I have Eclipse Indigo.
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.
CTRL + SHIFT + R –> used to search all types of files (Open Resource) CTRL + H –> opens dialog box which provides number of options (Search)
Select the project in project explorer -> Ctrl + H -> File Search Tab -> enter file name in containing text -> Check Selected Resources under Scope.
One more trick -> if you want to search only from *.java files then in File name patterns text box in the same File Search Tab enter *.java or *.props. This will filter out for you
On Menu
of Ctrl + Shift + T or R
dialogue Small down
arrow on extreme right use option Select Working Set
then set the working set and you are done now you can only search files from selected working set.
Ctrl + Shift + T Or R
>Menu
>Select Working Set
>New
>Java
>Add Or Add All
>Click on Selected Working set in Select Working set Dialog
>Select Working set and you are done.
Click on file search select enclosing projects under the subcategory 'scope'. this will enable you to search inside a specific project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With