Ian Vink
Ian Vink

Reputation: 68750

Eclipse Replace text in all Classes?

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

Answers (5)

Shubham Pai
Shubham Pai

Reputation: 1

Select the word and press alt+shift+r then replace the word, it should reflect in all classes.

Upvotes: 0

Rajesh
Rajesh

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

enter image description here

Upvotes: 14

Chinmoy
Chinmoy

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

enter image description here

Upvotes: 3

walterbing1
walterbing1

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

Gopi
Gopi

Reputation: 10293

I don't know about command but just press 'ctrl+h' the dialog that appears woulh have what you need

Upvotes: 0

Related Questions