Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find/replace across workspace in eclipse [duplicate]

Tags:

eclipse

Possible Duplicate:
Eclipse Replace text in all Classes?

I want to replace all instances of Foo.bar() with Foo across all files in my workspace in eclipse. Is there a way of doing this?

like image 227
Viral Shah Avatar asked Dec 09 '09 20:12

Viral Shah


1 Answers

When you do a text-based search in eclipse (using the flashlight button at the top of the screen and selecting the right tab) there's a "Replace..." button at the bottom of the dialog. Press that, instead of search, and you can do a global find and replace.

Alternatively, you can use the refactoring feature to change it to something else.

like image 126
Malaxeur Avatar answered Sep 28 '22 11:09

Malaxeur