我刚刚安装了Windows 10 Pro版本1903构建18362.116和Visual Studio Code。现在终端只能在外部启动。
按下Ctrl
+~
会出现这个情况。
我漏掉了什么?如何再次打开集成终端?
编辑
经过与VSCode团队的合作,这是一个已验证的错误。请点击此处查看Github问题。我在这里发布了解决方法。
我刚刚安装了Windows 10 Pro版本1903构建18362.116和Visual Studio Code。现在终端只能在外部启动。
按下Ctrl
+~
会出现这个情况。
我漏掉了什么?如何再次打开集成终端?
经过与VSCode团队的合作,这是一个已验证的错误。请点击此处查看Github问题。我在这里发布了解决方法。
settings.json
中将 "terminal.integrated.windowsEnableConpty": false
设置为这个值。 - Markoterminal.integrated.shell.windows
行:
"terminal.integrated.shell.windows"
是否具有值"C:\\Bin\\Cmder\\Cmder.exe"
,并将其设置为右侧的用户设置文档。Ctrl
+~
现在将打开VSCode的集成终端。"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
// PowerShell
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Ubuntu上的Bash(在Windows上)
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"
从命令面板(Ctrl+Shift+P)中,使用“View: Toggle Integrated Terminal”命令。
尝试自定义快捷键:
[
{
"key": "ctrl+`",
"command": "workbench.action.terminal.toggleTerminal"
}
]
ctrl
+ ~
是一样的。 - GollyJer这个问题已经解决了。我从VS Code支持中找到了解决方案。
对于错误:
终端退出并显示代码3221225786(或类似)#
“当您在conhost的属性中启用传统控制台模式时,可能会发生这种情况。要更改此设置,请从开始菜单打开cmd.exe,右键单击标题栏,转到“属性”下的“选项”选项卡,取消选中“使用传统控制台”。”
来源:VS Code文档