Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Configurable Command PromptNew to Visual Studio Code? Get it now.
Configurable Command Prompt

Configurable Command Prompt

ansencumt

|
6,091 installs
| (0) | Free
Launch a command prompt which contains the custom environment variables
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

gcmd

marketplace:https://marketplace.visualstudio.com/items?itemName=ansencumt.go-builder-help

Launch a new command line that target the current document path and contains the custom environment variables

Commands

  • ctrl+shift+p then golang-cmd:run launch a cmd.
  • ctrl+shift+p then golang-terminal:run launch a terminal.

Settings

By default, this extension use the native command line in your OS. But, you can override this behaviour by setting a different executable in the settings.json of your workspace. Here is an example if we prefer use custom environment variables :

// Place your settings in this file to overwrite default and user settings.
{
    "gcmd.env": {
        "GOPATH": "{go.gopath};{GOPATH}",
        "GOBIN":"d:\\golang\\bin"
    },

    "gterminal.env": {
        "env:GOPATH": "{go.gopath};{GOPATH}"
        ,"env:GOOS":"linux"
    }
}

There are two reserved variables.They mean what their literal mean

  • {currentpath}
  • {rootpath}

note: The icon come from wjq345(wechat)

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