Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Generate number sequence keeping selection orderNew to Visual Studio Code? Get it now.
Generate number sequence keeping selection order

Generate number sequence keeping selection order

Tnr1112

|
53 installs
| (0) | Free
This extension generate a number sequence when you are with selectors
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Generate number sequence from selections

Sometimes we want to generate a sequence number from the cursors that we have. For example: We have this text:

a1aaa
bbbb
cccc
dddd

We put the cursor on the first line then in the other ones, the extension will take the number 1 and add to the cursors the next number. Today the extension works with the order that you selected.

aCURSOR_HERE1aaa
bbbCURSOR_HEREb
CURSOR_HEREcccc
dddCURSOR_HEREd

We get:

a1aaa
bbb2b
3cccc
ddd4d

extension-demo

But if we select it in another order it respects it.

extension-demo2

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft