Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Command LinkNew to Visual Studio Code? Get it now.
Command Link

Command Link

Old School Toolz

|
2 installs
| (0) | Free
Click commands in the editor to run them in the vscode terminal.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Command Link

Click on commands to run them in your vscode terminal, just like hyperlinks opening in your browser.

You no longer copy / open terminal / paste / press enter.

Just ctrl+click on terminal!://docker compose up and vscode runs it.

Demo

Demo

Usage

<terminal_type> [!] :// command argument [<placeholder>]

  • terminal_type can be a generic terminal, as in the active terminal, or it can be a specific terminal type if the command only runs in one terminal.
  • ! is used to run the command immediately.
  • command is any command you want to run
  • arguments are any number of arguments for the command
  • placeholder is recognized as anything between <> or {{}}. Commands with placeholders can not be run immediately. They are staged to run so that you can fill in the placeholders.

Examples

  • terminal://docker compose up places docker compose up in your active terminal, ready for you to press enter.
  • terminal!://docker compose up runs the command in your active terminal.
  • pwsh!://Get-AzContext runs the command in a powershell (pwsh) terminal.
  • cmd!://rmdir /s /q node_modules will run the command in a cmd terminal.
  • bash!://ls will run the command in a bash terminal.
  • wsl!://top will run the command in a wsl terminal.

Features

  • ctrl+click your command launches the desired terminal.
  • terminal, cmd, pwsh, bash, wsl supported.
  • terminal followed by ! will auto-run the command.
  • cmd:// and wsl:// will fall back to the default shell on unsupported operating systems.

Security

The current workspace must be trusted before a command can be clicked. Commands will be presented as links, but clicking the link will be blocked until the workspace is trusted.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft