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

和自甴很熟 提交于 2019-12-22 06:58:52

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/33376790/customize-vscode-to-use-a-console-emulator-instead-of-the-command-prompt

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