Search code examples
eclipsescala-ide

Is there any way to search from the Project Explorer in Scala IDE or Eclipse?


I've recently switched to Scala-IDE for Scala development, especially since they added Scala Worksheets - what a cool feature.

Anyways, my biggest gripe with Eclipse is searching for text. I was unable to find an add-on or mechanism that would allow me to search or search-and-replace text in from the project explorer.

I'm using Eclipse 4.2 and would like to be able to just right-click on a folder or package in the Project Explorer and select 'search', to search that folder and it's sub-folders.

Is there a plug-in available for that or am I missing the elephant in the room? I tried using the search menu option from the main application menu, but it does not seem to take context (like the current package) into account.


Solution

  • In the search dialog of eclipse are several tabs. The File Search and the Java Search tabs have a box named Scope. It allows you to restrict your search to the Selected resources.