Visual Studio Code - Terminal Blank Screen

前端 未结 17 1960
梦如初夏
梦如初夏 2020-12-24 01:57

I\'ve been using Visual Studio Code since it was in beta and one of the features I like best about it is the integrated terminal for using the Angular CLI in app. I\'ve had

相关标签:
17条回答
  • 2020-12-24 02:31

    After some research I've found that this is a bug in VS Code with the application they use to integrate the shell. Looks like Android Studio has the same issue too. You can read about the more specific how / when / what etc. here:

    https://github.com/Microsoft/vscode/issues/57803

    This has been fixed on the insiders release that landed for me today (08/01/2019), not sure when this will be rolled out to the general release (if not January then I would imagine it might roll out in February barring no further issues).

    So for anyone else still getting this issue, update to the latest version of VS Code. If you have done and you're still getting the same problem you can check and report issues here:

    https://github.com/Microsoft/vscode/issues

    0 讨论(0)
  • 2020-12-24 02:32

    Same issue occurred for me and I browsed through the VS Code issues on GitHub. Here is the solution I found: https://github.com/microsoft/vscode/issues/53782#issuecomment-414919965

    Change terminal.integrated.rendererType back to canvas in VS Code settings and issue does not reappear.

    0 讨论(0)
  • 2020-12-24 02:33

    This is the only thing that worked for me.

    Change this configuration:

    File -> Preferences -> Settings, search for terminal.explorerKind, edit to external

    or just edit the json file

    "terminal.explorerKind": "external"
    

    When VSCode prompted me telling me that using integrated was better, I followed its advice and switched. But a couple of days ago it started being very weird, in that it left a space between the actual prompt and whatever I was writing, like this: Sometimes the spacing left was of more than a dozen lines. It got instantaneously fixed once I switched back to external.

    PS: This was also the case with Microsoft's Powershell terminal. I don't know if other terminals have the same issue under Windows.

    0 讨论(0)
  • 2020-12-24 02:35

    I had the same problem in visual studio code 1.41.1 in ubuntu 18.04,I solved it by editing the settings.json by going through settings and search for 'Inherit Env'and opening Edit in settings.json and changing

    "terminal.integrated.inheritEnv": true
    

    The screenshot is provided below

    screenshot

    0 讨论(0)
  • 2020-12-24 02:36

    I was experiencing the same issue. I upgraded to the latest version of VSCode 1.42.1, but that didn't resolve it. It seems that the issue has to do with Powershell 2.0, so I removed it:

    Control Panel->Programs and Features->Turn Windows features on or off->Windows PowerShell 2.0 (disable it).

    This resolved the issue for me.

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