自定义 VSCode 以使用控制台模拟器而不是命令提示符

Customize VSCode to use a console emulator instead of the command prompt

我可以自定义 VSCode 以使用控制台模拟器而不是命令提示符吗?

我想使用 conemu 之类的东西,但不想在 conemu 中使用 "force conemu as default terminal for console applications" 设置。

它有一个特定的警告 "enabling this option may cause false alarms in antiviral programs",我正在使用我的工作计算机。

我刚刚编写了一个简单的扩展,它使用此扩展定义的命令 console.open 覆盖键绑定 Ctrl/Cmd+Shift+C

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

虽然它不适用于 "Open in Command Prompt" 上下文菜单项。

他们刚刚实现了这个功能:

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

您将拥有 externalTerminal.windowsExecexternalTerminal.linuxExec 用户设置,您可以在其中定义什么控制台要使用的模拟器。

就我而言,我正在 windows 使用 conEmu。我的用户设置 (settings.json) 配置如下:

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

编辑:它已经在稳定版本中可用。