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

Evaluate Selected

supervision

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

Evaluation 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

  • Line-by-line Evaluation: This extension evaluates each selected line of text in Visual Studio Code and replaces it with the computed result.
  • Sandboxed Execution: Safely evaluates JavaScript expressions to prevent unintended code execution risks.
  • Flexible Syntax: Supports various arithmetic operations and JavaScript expressions.
  • Cross-Platform: Works seamlessly on Windows, macOS, and Linux systems.

  1. Installation:
  • Open Visual Studio Code.
  • Navigate to the Extensions Marketplace and search for Evaluation Selected.
  • Install the extension.
  1. Selecting Text:
  • Highlight the text containing JavaScript expressions you want to evaluate.
  1. Running the Extension:
  • Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette.
  • Type Evaluate Selected and select the command.
  1. Results:
  • The selected lines will be replaced with the evaluated results directly in the editor.

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