8

Can I customize VSCode to use a console emulator instead of the command prompt?

I want to use something like conemu, but don't want to use "force conemu as default terminal for console applications" setting in conemu.

It has a specific warning "enabling this option may cause false alarms in antiviral programs", and I'm on my work computer.

Hoppe
  • 6,508
  • 17
  • 60
  • 114

2 Answers2

7

They have just implemented this feature:

https://github.com/Microsoft/vscode/pull/3495

You'll have the externalTerminal.windowsExec and externalTerminal.linuxExec user settings, where you can define what console emulator to use.

In my case, I'm on windows using conEmu. My user settings (settings.json) are configured like follows:

{
    "externalTerminal.windowsExec": "conEmu64.exe"
}

EDIT: It's already available in the stable version.

ViZeke
  • 349
  • 3
  • 7
  • 3
    Please note that they have changed the setting to "terminal.external.windowsExec" – Hoppe Nov 11 '16 at 18:19
  • This doesn't work properly. Specifically, it doesn't allow you to pass in command-line parameters to reuse the existing instance or change to a specific working directory. Thankfully there's a plugin called "ConEmu Launcher" that does the trick. – kiddailey Nov 01 '18 at 21:54
1

I just wrote a simple extension that overrides key binding Ctrl/Cmd+Shift+C with command console.open defined by this extension.

https://marketplace.visualstudio.com/items/vilicvane.console

It's not working with "Open in Command Prompt" context menu item though.

vilicvane
  • 11,625
  • 3
  • 22
  • 27