Friday, November 2, 2012

How to do a global search/replace across files in Eclipse


The location of this command is not very intuitive. To search and replace in multiple files you need to select "Search" > "File...".


Step by step:
  1. Select the text in a file
  2. From the "Search" menu, select "File...". This will bring up the "Search" dialog box.
  3. At the bottom of the dialog, click "Replace..."
  4. This will bring up the "Replace" dialog box where you can type in your replacement text and replace individual occurrences or all occurrences.

No comments: