Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Javascipt Command RunnerNew to Visual Studio Code? Get it now.
Javascipt Command Runner

Javascipt Command Runner

Arihilmir

|
435 installs
| (0) | Free
Create commands in a command palette running JS code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

js-command-runner

A small extension that allows defining custom commands in JS. You can use it for some small tweaks instead of writing shell scripts.

A code runs as a function evaluated in your VSCode, so you are to blame for everything.

Features

All tasks are defined as a setting in your settings.json as following:

"js-command-runner.commands": [
        {
            "label": "My command",
            "commands": [
                "var variable = 'This is a string';'"
                "infoNotification(`Script ${variable} executed...`);",
            ],
        }
    ]

There are two special functions:

  • infoNotification: a regular information notification
  • errorNotification: an error information notification

Requirements

Extension Settings

js-command-runner.commands - an array of commands to be executed.

Commands object:

  • label: name of command. Previewable from quick look
  • commands: array of strings, each line should a valid JS code.
  • description: command description. Optional

Known Issues

TBD

Release Notes


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