Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Digit SpinNew to Visual Studio Code? Get it now.
Digit Spin

Digit Spin

emsaicer

| (0) | Free
Change Numbers by Incrementing and Decrementing Their Digits One by One Using Arrows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Digit Spin Icon Digit Spin Extension for VS Code

Digit Spin adds an ability to change numbers digit by digit with arrow keys, thus making it easier and more controllable to work with numbers.

Select – Change – Deselect

  • Put the cursor on the number you want to work with and use the Ctrl + Shift + Q shortcut to select it.
  • Press the Right and Left arrow keys to select the digit you want to change.
  • Use the Up and Down arrow keys to increment and decrement the selected digit.
  • To deselect the number you can do one of the following actions:
    • Press Escape.
    • Press Enter.
    • Press Ctrl + Shift + Q.
    • Click somewhere inside the document with a mouse.

Select – Change – Deselect GIF

Carry and Borrow

Digits are not changed in isolation. Carry and borrow rules are applied. If you select number 19 and increase its first digit, it becomes 20. Similar logic works for subtraction.

Carry and Borrow GIF

Add New Digits

If you go beyond the number's highest or lowest digit, a new digit with value 0 will be created, which you can change as well.

Add New Digits GIF

Work with Several Numbers

It is possible to select more than one number using the multi-cursor VS Code feature and work with all of them at the same time.

Work with Several Numbers GIF

Other Features

  • Support of numbers with fractional parts with both decimal and comma points.
  • Support of negative numbers.
  • Ability to select the highest and lowest digit with the Home (Fn + Left) and End (Fn + Right) keybindings, respectively.
  • Ability to delete a selected digit using Backspace.
  • Ability to deselect a number and delete all insignificant zeros with Ctrl + Enter.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft