Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Math On TextNew to Visual Studio Code? Get it now.
Math On Text

Math On Text

Greengray

|
273 installs
| (1) | Free
Perform math on selected text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Math on Text

Perform mathematical operations on numbers within your code editor!

Features

  • Perform basic arithmetic operations (+, -, *, /, %) on numbers within the selected text in your code editor.

  • Easily manipulate numerical data within your code without leaving your editor.

How to Use

example

  1. Select the text containing numbers.
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  3. Type "Math On Text" and select it.
  4. Enter the desired mathematical operation followed by the operand (e.g., *25 for multiplication by 25).
  5. The extension will replace the selected text with the result of the mathematical operation applied to the numbers.

Example

Suppose you have the following text selected in your code editor:

const x =  10;
const y =  20;
const z = x + y;
  1. Select the first two lines (or the text you want).
  2. Invoke the command and input *2.
  3. The selected text will be replaced with
const x =  20;
const y =  40;
const z = x + y;

Release Notes

0.0.1

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