IDEA小技巧-同時編輯多行

ideasql

若是要實如今多行前面添加同樣的內容,好比已知id的列表拼接sqlide

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

本文使用OpenWrite進行編寫code

相關文章
相關標籤/搜索