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

后端 未结 4 1648
说谎
说谎 2020-12-30 03:01

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

相关标签:
4条回答
  • 2020-12-30 03:24

    OK, worked through this one in VSCode repo issues.

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

    0 讨论(0)
  • 2020-12-30 03:33

    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"
        }
    ]
    
    0 讨论(0)
  • 2020-12-30 03:36

    Had this problem fixed. Found the solution from the VS Code support.

    for error:

    Terminal exits with code 3221225786 (or similar)#

    "This can happen when you have legacy console mode enabled in conhost's properties. To change this, open cmd.exe from the start menu, right-click the title bar, go to Properties and under the Options tab, uncheck Use legacy console."

    source: VS Code docs

    0 讨论(0)
  • 2020-12-30 03:44

    The issue now says use legacy console. To change the setting open a cmd prompt. Right click the title to bring up properties.
    cmd properties

    Then Uncheck 'Use legacy console'
    Use legacy console

    0 讨论(0)
提交回复
热议问题