Forked from Inori/vscode-InsertNumbers
See (Changelog) for all changes since fork.
An extension to insert increasing numbers.
-
Command:
Insert Numbers -
Keybindings:
ctrl+alt+non Windows and Linux orcmd+alt+non OSX -
Usage of the
InputBoxwhen you toggle insert:<start number>(using default setting for step amount and string format)<start number>:<step amount>(using default setting for string format)<start number>:<step amount>:<string format><string format (with %)>:<start number>:<step amount>(Limited to format with % sign, the integer format (prefix) is not allowed in this input)
You can change your settings.json file to modify the default value:
The format of the inserted numbers is controlled by a C-Style format string using in a sprintf function.
- The format string can be a single string like :
%d: inserts the number only (default)%02dor%08detc. - The format string can be filled in as a integer like like
8which will transform it to%08dfor easy prefixing
- Do not input more than one type specifier in a format string. If you want to input more than one number, you can do it another time.
- Do not input
:in format string. - If filling in a format string, the format string should include a
%.
Continuous improvement is encouraged and your contributions are valuable!
If you identify areas for improvement, have suggestions or encounter issues, please create a GitHub issue and/or a Github pull request.
