An extension that automatically inserts sequential numbers in multi-cursor editing mode. This is inspired by the Insert Numbers extension.
- Insert sequential numbers in multi-cursor editing mode.
- Select the text you want to replace with numbers.
- Press
Ctrl+Shift+P
to open the command palette. - Type
Insert Numbers
and select the command. - Enter the starting number and then hit
Enter
.
There is also a default keybindings for Insert Numbers
command:
- Windows:
ctrl+alt+n
- Linux/macOS:
cmd+alt+n
This extension contributes the following settings:
insert-numbers.start
: The starting number for the sequence. Default is1
.insert-numbers.minimumIntegerDigits
: The minimum number of integer digits. Default is1
.insert-numbers.useGrouping
: Whether to use grouping separators. Default isfalse
.
Example settings:
{
"insert-numbers.start": 1,
"insert-numbers.minimumIntegerDigits": 1,
"insert-numbers.useGrouping": false,
}
N/A
- Blog: The Will Will Web
- Facebook: Will 保哥的技術交流中心
Enjoy!