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

时光毁灭记忆、已成空白 提交于 2019-12-05 09:12:25

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!