Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>simple-calcNew to Visual Studio Code? Get it now.
simple-calc

simple-calc

Adnan Almarwan

| (0) | Free
Simple calculator work like mac spotlight.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Calculator Extension for VS Code

A lightweight Visual Studio Code extension that calculates mathematical expressions and inserts the result at your cursor position. Perfect for quick calculations without leaving your code editor.

Demo VS Code License

✨ Features

  • 🔢 Calculate mathematical expressions directly in VS Code
  • 🎯 Insert results at cursor position with a single command
  • ⚡ Fast and lightweight - no external dependencies required
  • 🛡️ Safe evaluation - uses secure expression parsing (no eval())
  • 📋 Supports common operators: +, -, *, /, %, ^, ()
  • ⌨️ Keyboard shortcut support for quick access

📦 Installation

From VS Code Marketplace

  1. Open Extensions view in VS Code (Ctrl+Shift+X)
  2. Search for "Calculator Extension"
  3. Click Install
  4. Reload VS Code if prompted

From VSIX File

  1. Download the .vsix file from releases
  2. Open VS Code and go to Extensions view
  3. Click the ... menu and select Install from VSIX...
  4. Select the downloaded file and install

🚀 Usage

Basic Calculation

  1. Place your cursor where you want the result inserted
  2. Open Command Palette (Ctrl+Shift+P)
  3. Type Calculate and press Enter
  4. Enter your mathematical expression (e.g., 2+3*4)
  5. Press Enter to calculate and insert the result

Example Expressions

  • 2+3*4 → 14
  • (2+3)*4 → 20
  • 10/3 → 3.333...
  • 2^8 → 256
  • sqrt(9) → 3

Keyboard Shortcut

You can add a custom keyboard shortcut in your keybindings.json:

{
  "key": "ctrl+alt+c",
  "command": "simple-calc.calculate"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft