Eclipse – Replace String in all files in Eclipse

eclipse, replace, string

How can I search and replace a String in all files of my current project?

Let's say I have the string "/sites/default/" now I want it to be "/public/sites/default/", but there are almost 1000 files.

Best Solution

  • Goto "Search"->"File" from menubar at the top left
  • Enter text, file pattern and projects
  • Click "Replace..." button at the bottom
  • Enter new text click ok