Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open in User-defined ConsoleNew to Visual Studio Code? Get it now.
Open in User-defined Console

Open in User-defined Console

vilicvane

|
4,723 installs
| (5) | Free
Open console with a user-defined executable.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console

A Visual Studio Code extension for opening projects in user-defined consoles.

Commands

console.open

description: Open current workspace in user-defined console.
key binding: Ctrl/Cmd+Shift+C

console.openActive

description: Open the directory containing active file in user-defined console.
key binding: Ctrl/Cmd+Shift+A

You must configure a console executable to use this extension.

For example:

{
    "console.executable": "cmd.exe",
    "console.args": "/s /c \"\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" /single /icon code.exe /title \"ConEmu - Visual Studio Code\"\""
}

Note: there is some issue with Ctrl+C if you start ConEmu directly with "console.detached": true. It is recommended to use cmd.exe to start ConEmu.

Configurations

console.executable

Path of the console executable.

console.args

Arguments in an array or string. If it's an array, the executable will be execute using spawn, otherwise exec.

console.detached

Take effects only if console.args is an array (thus spawn is used).

console.cwd

Current working directory for command console.open, defaults to "{dirname}".

License

MIT License.

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