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
(Continued from page 1)
In the Search view, you can select that files that you're interested in (I selected all of them by selecting the 'tomcat-demo' project), right-click, and go to Replace.
This brings up a Replace window that lets you do either a 'replace' or 'skip' on all the references to your search term that were found.
As you can see below, the replacement ability spans multiple files, which at times can be a very significant timesaver.
Personally, I would like to see a one-step Find and Replace, but given the complexities involved in searching multiple files in EclipseSW, I can understand making it a two-step process. This process is simple once you see it, but at least for me it wasn't very intuitive since normally Find-and-Replace is performed by a single step rather than two steps.