Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Insert NumbersNew to Visual Studio Code? Get it now.

Insert Numbers

Asuka

|
68,648 installs
| (12) | Free
Insert increasing numbers
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

Insert Numbers for Visual Studio Code

An extension to insert increasing numbers.

default behavior

Usage

  • Command: Insert Numbers
  • Keybindings: ctrl+alt+n on Windows and Linux or cmd+alt+n on OSX

Control format

The format of the inserted numbers is controlled by a C-Style format string using in a sprintf function.

There are two ways to change the default format string.

  • You can change your settings.json file to modify the default value: settings

  • You can input format string in the InputBox each time you toggle insert. The format string can be a single string like %02d: dec format or with start number and step, like %08X:0:4: input format

    Note

    • 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.

Thanks

  • sprintf.js

For more information or bug reports

  • GitHub

Changes

  • Version 0.9.0: April 29, 2016

    First version

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft