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

Calculator

Lixquid

|
24,635 installs
| (4) | Free
Calculation commands and tools for VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Calculator

Calculation commands and tools for VS Code.

Installation

To install Calculator, do the following steps:

  1. Open Visual Studio Code
  2. Open the Quick Open Palette (By default: Ctrl-P)
  3. Type ext install calculator
  4. Select the Calculator extension
  5. Select Install

Usage

Select a math expression:

Usage-1

The math widget in the status bar will show you the result:

Usage-2

You can also use Calculator commands to modify the text directly:

Usage-3

Usage-4

Commands

  • calculator.evaluate
    • Evaluates the expression, and appends it to the selection.
  • calculator.replace
    • Evaluates the expression, and replaces it with the result.
  • calculator.count
    • Counts each selection / cursor, and replaces the contents with the number.
  • calculator.count_from
    • Counts each selection / cursor, and replaces the contents with the number, starting from a custom value.
  • calculator.showInput
    • Opens an input dialogue that will evaluate anything typed into it. Confirming the dialogue will copy the result to the clipboard.

Configuration

  • calculator.countStart (Default: 0)
    • The value to start counting from when using the calculator.count command.
  • calculator.disableWidget (Default: false)
    • Disables the calculation widget.
  • calculator.humanFormattedOutput (Default: false)
    • If enabled, the output will be formatted in a human-readable way according to the default locale, such as 1,000,000 instead of 1000000.

Other

Powered by Math JS.

Calculator is hosted at GitHub.

Calculator is licensed under the GPLv3.

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