Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Calculation SelectedNew to Visual Studio Code? Get it now.
Calculation Selected

Calculation Selected

supervision

|
11 installs
| (0) | Free
Just select numbers and calculate with this extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Calculation Selected

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

  1. Select Numbers
    Highlight the numbers in your editor that you want to calculate.
    Example:
1000 
300 
400
  1. Open Command Palette
    Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette.

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

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