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

addNumberToSelection

Matt Williams

|
130 installs
| (1) | Free
Add a specified number to the selected number text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

addnumbertoselection README

Add a specified number to number(s) highlighted within the VS Code editor.

Features

Add a number to number(s) selected in the VS Code editor. The extension will replace each selection with the sum of selection + inputNumber.

Example:

  • Highlight multiple numbers in your editor
  • Open the Command Pallete (SHIFT + CMD + P)
  • Select "Add Number to Selected Number(s)"
  • Input a number
  • Press enter

NOTE: Extension uses typecasting (var sel = +selection) to convert selections to numbers for addition.

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