How to use IDEA to edit multiple lines simultaneously
This article introduces you how to use IDEA to edit multiple lines at the same time. The content is very detailed. Interested friends can refer to it for reference. I hope it can help you. If you want to add the same content in front of multiple lines, such as list concatenation sql with known id
1 => select * from table where id=12 => select * from table where id=23 => select * from table where id=34 => select * from table where id=45 => select * from table where id=56 => select * from table where id=67 => select * from table where id=78 => select * from table where id=89 => select * from table where id=9
Just select the first line where you want to start editing, hold down alt, and then hold down the mouse to start dragging down, you will find that the cursor becomes longer, and then enter the content you want to add on the line, the same can be batch vertical selection of text batch modification
About how to use IDEA to edit multiple lines at the same time to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.