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