How do I do a Find-and-Replace in multiple files in Eclipse?
Author: Deron Eriksson
Description: This tutorial describes doing a Find-and-Replace across multiple files in Eclipse.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.1


Page:    1 2 >

Doing a 'Find and Replace' in multiple files was less intuitive that I would have expected. It's really a two-step process: (1) do a search from the Navigator view, and (2) do a replace in the results that are displayed in the Search view.

Here's a short example. Highlight your resources to search in the Navigator view and click the Search button in the toolbar.

click Search button

Put your search parameters into the Search pop-up window. I selected to do a File Search for 'password' -- ignoring case -- of all selected resources.

searching for 'password'

After clicking the Search button in the Search pop-up window, the search is performed, and the results are displayed in the Search view. 18 matches for 'password' were found in the tomcat-demo project.

search view displays results

(Continued on page 2)

Page:    1 2 >