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

Terminal Commands Runner

Fadi Abu zant

|
1 install
| (1) | Free
Run predefined terminal commands from Explorer context menu or Command Palette.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terminal Commands Runner

Run predefined terminal commands from Explorer context menu or Command Palette.

See how it works

Example

Configuration

How to edit your command list:

VSCode -> File -> Preferences -> Settings

It will show the list: [Text Editor, Workbench, Window, Features, Application, Extension].

Click on "Extensions", Scroll down and click on "Run Terminal Command..." -> Edit in Settings.Json

Or just open and edit directly the file: C:\Users\{YOUR USERNAME}\AppData\Roaming\Code\User\Settings.Json

Now you can edit the commands you want:

    "runTerminalCommand.commands": [
        {
            "command": "npm start",
            "name": "Start Node.JS",
        },
        {
            "command": "ndb server.js",
            "auto": true,
            "group": "Node.JS",
        },
        {
            "command": "nodemon server.js",
            "name": "Nodemon",
            "auto": true,
            "preserve": true,
            "fromRoot": true,
            "group": "Node.JS",
        },
        {
            "command": "npm run start:{clipboard}",
            "name": "Run with environments",
            "auto": true,
            "group": "Node.JS",
        },
        {
            "command": "echo {resource}",
            "auto": true
        },
        {
            "command": "echo {#sym:Type something}",
            "name": "User Input",
            "auto": true
        },
    ]

Properties

Property Description
command The text to send to the terminal.
auto Whether to add a new line to the text being sent, this is normally required to run a command in the terminal.
preserve Don't dispose of terminal running this command.
fromRoot Open the terminal at the workspace root folder instead of the file's directory.
name Name for the command. A human readable string which is rendered prominent.
group Commands sharing the group name will be grouped together in the menu.

Variables

Variable Description
{resource} Name of current resource.
{clipboard} Clipboard content.
{#sym:Label} Prompts the user for input at runtime. Label is shown as the input prompt.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft