如何使用IDEA进行同时编辑多行
更新:HHH   时间:2023-1-7


这篇文章给大家介绍如何使用IDEA进行同时编辑多行,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。如果要实现在多行前面添加一样的内容,比如已知id的列表拼接sql

1 => select * from table where id=1
2 => select * from table where id=2
3 => select * from table where id=3
4 => select * from table where id=4
5 => select * from table where id=5
6 => select * from table where id=6
7 => select * from table where id=7
8 => select * from table where id=8
9 => select * from table where id=9

只要选中第一行你要开始编辑的地方,按住alt,然后按住鼠标开始向下拖动,会发现光标变长了,然后就输入你想要添加的内容就行啦,同理可以批量垂直选择文本批量修改

关于如何使用IDEA进行同时编辑多行就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

返回大数据教程...