Reputation: 68750
Is there a command to replace a string of code with another in all .java files in an Eclipse project?
In Visual Studio there is a "Replace in all files" option that I can't seem to find in Eclipse.
Upvotes: 26
Views: 38047
Reputation: 1
Select the word and press alt+shift+r then replace the word, it should reflect in all classes.
Upvotes: 0
Reputation: 4769
Press Ctrl+H or look in the Search menu for Search>Search or Search>File Search Tab. At bottom of dialog box, click Replace
Upvotes: 14
Reputation: 503
I have tried the following option in Helios Version of Eclipse. Simply press CTRL+F you will get the "Find/Replace" Window on your screen
Upvotes: 3
Reputation: 533
Press Ctrl+H or look in the Search menu for Search>Search or Search>File depending on version. At bottom of dialog box, click Replace... There you'll find the replace in files functionality.
Upvotes: 37
Reputation: 10293
I don't know about command but just press 'ctrl+h' the dialog that appears woulh have what you need
Upvotes: 0