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
- Select the text containing numbers.
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
- Type "Math On Text" and select it.
- Enter the desired mathematical operation followed by the operand (e.g., *25 for multiplication by 25).
- 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;
- Select the first two lines (or the text you want).
- Invoke the command and input *2.
- The selected text will be replaced with
const x = 20;
const y = 40;
const z = x + y;
Release Notes
0.0.1
| |