使用 idea 批量操作
一、准备代码:
1 2 3 4 5 6 7 8
| private String code; private String name; private String sex; private String age; private Float price; private String type; private String remark; private String attention;
|
二、使用 Alt+鼠标拖动
1 2 3 4 5 6 7 8
| |private String code; |private String name; |private String sex; |private String age; |private Float price; |private String type; |private String remark; |private String attention;
|
三、使用 Ctrl+Shift+右方向键
作用:跳一个单词,使用 Backspace 删除。
1 2 3 4 5 6 7 8
| code; name; sex; age; price; type; remark; attention;
|
四、使用 Shitf+End
作用:从当前位置跳到最后,使用 Backspace 删除。
1 2 3 4 5 6 7 8
| code, name, sex, age, price, type, remark, attention,
|
五、使用 Ctrl+Backspace,回到一行
1
| code,name,sex,age,price,type,remark,attention,
|
六、操作演示