user753527
user753527

Reputation: 101

Find and Replace text in Eclipse

I am using eclipse IDE.I need to modify thousands of hbm.xml file by replacing the text generate="always" to generate="never". Please tell me the easiest way.

Upvotes: 8

Views: 11527

Answers (2)

Jon Skeet
Jon Skeet

Reputation: 1500575

Click on the "Search" button, click on the "File Search" tab, set the filename to hbm.xml, set the text to generate="always" and click on the "Replace" button at the bottom. When it's search for all matches, it'll offer you another dialog to say what to replace it with.

Upvotes: 8

Andreas Dolk
Andreas Dolk

Reputation: 114777

The eclipse search dialogs offer a global find and replace in text files.

Upvotes: 0

Related Questions