Calculator
Calculation commands and tools for VS Code.
Installation
To install Calculator, do the following steps:
- Open Visual Studio Code
- Open the Quick Open Palette (By default:
Ctrl-P )
- Type
ext install calculator
- Select the Calculator extension
- Select Install
Usage
Select a math expression:

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

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


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.showInput
- Opens an input dialogue that will evaluate anything typed into it.
Closing the dialogue will copy the result to your clipboard if it is
valid.
Configuration
calculator.count_start (Default: 0 )
- The value to start counting from when using the calculator.count command.
calculator.disable_widget (Default: false )
- Disables the calculation widget.
Other
Powered by Math JS.
Calculator is hosted at
GitHub.
Calculator is licensed under the GPLv3.
| |