How to comment all lines contain some text in eclipse

I am using eclipse to prepare java. Now I have come across this problem several times when I want to comment on all lines containing a specific text / variable. Is there any way to do this?

+6
source share
1 answer

You can use find / replace with regex as in the current image (replacing div )

enter image description here

+10
source

Source: https://habr.com/ru/post/946473/


All Articles