Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Run Terminal CommandNew to Visual Studio Code? Get it now.
Run Terminal Command

Run Terminal Command

Adrian Wilczyński

|
422,855 installs
| (8) | 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

Run Terminal Command

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

See how it works

Example

Configuration

    "runTerminalCommand.commands": [
        {
            "command": "ng g c ",
            "name": "Generate Component"
        },
        {
            "command": "tsc {resource}",
            "auto": true
        },
        {
            "command": "dotnet run",
            "auto": true,
            "group": ".NET Core"
        },
        {
            "command": "dotnet add page -n ",
            "group": ".NET Core"
        },
        {
            "command": "dotnet watch run",
            "auto": true,
            "preserve": true,
            "group": ".NET Core"
        },
        {
            "command": "dotnet add package {clipboard}",
            "auto": true,
            "group": ".NET Core"
        }
    ]

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.
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.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft