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 press
Escape or Enter or Ctrl + Shift + Q, or click somewhere inside the document with a mouse.

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.

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.

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.

Incremental Change
Use Ctrl + Up and Ctrl + Down shortcuts to increase and decrease the numbers incrementally, i.e, each subsequent number will change by one more than the previous one.

Move Decimal Separator
Alt + Right and Alt + Left hotkeys move the decimal separator right and left, respectively, thus multiplying and dividing the number by 10.

Select Adjacent Number
When a number is selected, you can select the left or right number using the Ctrl + Left and Ctrl + Right hotkey respectively.

Other Features
- Support of numbers with fractional parts with both dot and comma separators.
- 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.
Useful Links
Digit Spin page on Visual Studio Marketplace