A Visual Studio Code extension that allows you to perform basic arithmetic operations (addition, subtraction, multiplication, and division) on selected numbers directly within the editor. Simplify your workflow by avoiding the need for external calculators!
Features
Perform calculations on selected numbers:
Addition: Adds all selected numbers.
Subtraction: Subtracts the selected numbers sequentially.
Multiplication: Multiplies all selected numbers.
Division: Divides the selected numbers sequentially.
Supports multi-line and space-separated numbers.
Automatically replaces the selected text with the calculated result.
Usage
Select Numbers
Highlight the numbers in your editor that you want to calculate.
Example:
1000
300
400
Open Command Palette
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette.
Run a Calculation Command
Search for one of the following commands:
Calculate with Plus: Adds the selected numbers.
Calculate with Minus: Subtracts the selected numbers sequentially.
Calculate with Multiply: Multiplies the selected numbers.
Calculate with Divide: Divides the selected numbers sequentially.
View Results
The selected text will be replaced with the calculated result.
Example:
1700
License
This project is not licensed. You are free to do as you wish with the code, but please note that you do so at your own risk.