Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to comment all lines contain some text in eclipse

Tags:

java

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?

like image 511
namalfernandolk Avatar asked Jun 04 '13 07:06

namalfernandolk


People also ask

How do you comment multiple lines in java?

Java Multi-line Comments Multi-line comments start with /* and ends with */ . Any text between /* and */ will be ignored by Java.


1 Answers

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

enter image description here

like image 102
Michal Borek Avatar answered Oct 30 '22 00:10

Michal Borek