Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode EvalNew to Visual Studio Code? Get it now.
VSCode Eval

VSCode Eval

ExPixel

|
1,595 installs
| (2) | Free
Evaluates selected regions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-eval README

Build Status

Evaluate multiple selections as javascript expressions and replace them with their values.

Features

  • Evaluates javascript expressions.
  • All functions and objects provided by the Math object are globals in eval.
  • Use $prev to use the value of the previously evaluated expression.
  • Use $s{n} to use the value of the the previously evaluated expression #n (0-based)
  • Extra Functions
    • hex(number, padTo = 0, padChar = 0) -- Convert number to hexadecimal.
    • bin(number, padTo = 0, padChar = 0) -- Convert number to binary.
    • oct(number, padTo = 0, padChar = 0) -- Convert number to octal.
    • itoa(number, radix, padTo = 0, padChar = 0) -- Convert a decimal number to another radix.

Eval Usage

Extension Settings

This extension contributes the following settings:

  • eval.evalSelectionsByPosition: If this is true, eval will evaluate expressions in order of their positions instead of the order they were created in. This is on by default.

Release Notes

1.0.0

Initial release of Eval

1.2.0

Changed the way that selections are evaluated and other minor changes.

Other

  • Icon is by BlackVariant
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft