namalfernandolk
namalfernandolk

Reputation: 9134

How to comment all lines contain some text in eclipse

I'm using eclipse to cook java. Now I have a faced this problem in several times when I want to comment all the lines that contains a specific text / variable. Is there any way to do it?

Upvotes: 6

Views: 546

Answers (1)

Michal Borek
Michal Borek

Reputation: 4634

You can use find/replace with regular expression, just like in current picture (replacing div)

enter image description here

Upvotes: 11

Related Questions