Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JavaScript (SpiderMonkey) Run ButtonNew to Visual Studio Code? Get it now.
JavaScript (SpiderMonkey) Run Button

JavaScript (SpiderMonkey) Run Button

EasierTeaching

|
833 installs
| (0) | Free
Adds a run button to the top right of a .js editor. This is similar to, but more basic, then the python extension's run button. Also added a command palette command: Install and Setup Spidermonkey. This install Homebrew on Macs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

javascript--spidermonkey--run-button README

This is a simple extension that adds a play/run button to the top right of the editor window for .js and .ts files. When you click the button, the current file is run in the terminal using the js or tsx command. This is useful for running TypeScript/JavaScript files in the terminal.

Javascript files (.js) files will be run using Spidermonkey. Spidermonkey is FireFox's JavaScript engine.

TypeScript files (.ts) are also supported and will be run using tsx. You can install both TypeScript and tsx with the following command:

npm i -g typescript tsx

Requirements

For TypeScript, this extension requires Node.js (which includes npm), as well as TypeScript and tsx installed globally.

For JavaScript, this extension requires the SpiderMonkey JavaScript engine to be installed on your system and on the path. A command 'Install and Setup Spidermonkey' is provided in the command palette to help you install SpiderMonkey.

github

https://github.com/zachtsch/js-spidermoney-vs-code-extension

Install and Setup Spidermonkey

This command will install SpiderMonkey on your system and add it to your path. It behaves differently depending on your operating system.

Windows

Downloads jsshell-win64.zip from https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/ and unzips it in C:\spidermonkey. Then it updates your user Path so future terminals can find js. Finally it removes the .zip file.

If you already had VS Code or a terminal open, you may need to open a new terminal or restart VS Code before js is available as a plain command there.

Mac

Installs Homebrew, adds brew to your path and then runs brew install spidermonkey. Requires your password. Leaves Homebrew installed.

Linux

Automated installation from this extension is unsupported at this time. Please install SpiderMonkey manually.

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