Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JS-EVALNew to Visual Studio Code? Get it now.
JS-EVAL

JS-EVAL

JS EVAL

|
469 installs
| (3) | Free
Calculate selected text in JavaScript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JS EVAL

TO Activate the extension:
PC: CTRL SHIFT P > Search for JS EVAL
MAC: CMD SHIFT P > Search for JS EVAL

Then just select the text you want to get evaluated. This extension also gets variables values declared outside of the selected text.

If you want to support me so I can continue developing and extending features, you can buy me a redbull here: https://ko-fi.com/jseval

HOW IT WORKS:

Evaluate the selected text. A variable can also get its value from other variables. 2
It is able to evaluate if a variables value is assigned to an expression(Even if the expression itself contains variables).
Selected text inline will also be evaluated correctly. 3

After an expression you want to calculate has been selected, the result will update live on the statusbar(left bottom corner).

General Info

If you encounter any bugs, have any feedback on features you'd like me to implement, don't hesitate to reach out.

JS EVAL is able to use both numbers and variables, even though the variables are defined outside of the selected text. It currently does not support arrays, object and functions, as it is intended for small evaluations and finding the latest assigned value to a selected variable.

Extension Settings

Just install and the 'Result' should appear on the statusbar in the bottom left.

Enjoy!

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