vscode使用Increment Selection插件,插入递增数字,递减数字,递增字母,递减字母。
1.安装Increment Selection
搜vscode搜索Increment Selection 安装
2.递增数字,递减数字
2.1 快捷键顺序(从零递增)
- shift+alt+鼠标左键–选中多行。
- ctrl+alt+i
2.2 快捷键顺序(从任意数字开始递增)
- shift+alt+鼠标左键–选中多行。
- 输入任意数字,shift+ctrl+→键选中数字
- ctrl+alt+i
2.3 递减数字同理,区别在于从下往上选中(光标定位第10行,shift+alt+鼠标左键–选中第一行即可递减)
3.递增字母,递减字母
与递增递减数字同理,预先输入字母即可