How do I get around the verified bug in Windows 1903 and launch the VSCode integrated terminal?

非 Y 不嫁゛ 提交于 2019-11-29 08:45:36

问题


I just did a fresh install of Windows 10 Pro version 1903 build 18362.116 and Visual Studio Code. Now the integrated terminal only launches externally.

Pressing Ctrl + ~ results in this.

What am I missing? How do I get it to open integrated again?


EDIT

After working with VSCode team it is a verified bug. See the Github issue here. I posted the workaround as an answer here.


回答1:


OK, worked through this one in VSCode repo issues.

For now, until it's fixed, turn off ConPTY integration in the User Settings.

💥💥💥




回答2:


To change the integrated terminal on Windows, you just need to change the terminal.integrated.shell.windows line:

  1. Open VS User Settings (Preferences > User Settings). This will open two side-by-side documents.
  2. Check if "terminal.integrated.shell.windows" has value "C:\\Bin\\Cmder\\Cmder.exe" setting to the User Settings document on the right.
  3. Remove this line.

Ctrl + ~ will now open integrated terminal of VSCode.

If the above solution doesn't work then can you try below values and check if it works for you:

// Command Prompt

"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"

// Bash on Ubuntu (on Windows)

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"

From the Command Palette (Ctrl+Shift+P), use the View: Toggle Integrated Terminal command.

Try custom shortcut:

[
    {
        "key": "ctrl+`",
        "command": "workbench.action.terminal.toggleTerminal"
    }
]


来源:https://stackoverflow.com/questions/56154957/how-do-i-get-around-the-verified-bug-in-windows-1903-and-launch-the-vscode-integ

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