Reference: vscode 同时编辑多行,插入递增数字,递减数字,递增字母,递减字母。
1. Install Increment Selection
Search for Increment Selection in the VS Code extensions marketplace and install it.

Incrementing and decrementing numbers
Incrementing numbers
Shortcut sequence (increment from zero)
Shift + Alt to select multiple lines
Ctrl + Alt + i
Shortcut sequence (increment starting from any number)
Shift + Alt to select multiple lines
Type any number, then Shift + Ctrl + → to select the number
Ctrl + Alt + i
Decrementing numbers
The same as incrementing numbers, except that you select from the bottom up.
Incrementing and decrementing letters
The same as incrementing and decrementing numbers; just type the letters in advance.
评论
TwikooArtalk