Integrated terminal in visual studio code is opening externally and not internally

浪子不回头ぞ 提交于 2021-02-19 01:52:05

问题


I have reinstalled Visual Studio Code and for some reason, when I do the Ctrl+Shift+` shortcut, instead of opening a terminal window inside VS Code, it's opening an external command window, which is very annoying.

Anyone knows what setting it is to get it back internally?

I tried File->Preferences->Settings->Terminal and then set the first option "Customizes what kind of terminal to launch." to integrated.

Is there any other setting I need to set?


回答1:


Happened the same with me. It was because I was using Legacy Console. To disable that, open any of your terminal (cmd or powershell) and right click to go to properties. Properties -> Options -> Use Legacy console (tick it off).




回答2:


Found this: https://github.com/microsoft/vscode/issues/72033

Which is listed as a duplicate but someone was also kind enough to link to this: How do I get around the verified bug in Windows 1903 and launch the VSCode integrated terminal?

Which has a workaround as an answer, yay!




回答3:


Turn off ConPTY integration in the

File->Preferences->Settings->conPTY->Uncheck it

This is worked for me as mentioned here: https://stackoverflow.com/a/56267064/2462531




回答4:


Here's some things you can check:

  1. Make sure you've set integrated on both the User and the Workspace settings, because the Workspace settings can override the User settings.

  2. Make sure you are using the correct keyboard shortcut. VS Code actually has a shortcut for opening the system's native console, which will open an external window:

    Make sure that your Ctrl+Shift+` is actually the shortcut for Create New Integrated Terminal:



来源:https://stackoverflow.com/questions/58246717/integrated-terminal-in-visual-studio-code-is-opening-externally-and-not-internal

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