Visual Studio Code - Terminal Blank Screen

前端 未结 17 1941
梦如初夏
梦如初夏 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:11

    The following helped for me in windows10.

    Right click and open the properties of visual studio code short cut.

    1. Add --disable-gpu to the end of Target.
    2. And in the compatibility tab, uncheck compatibility Mode and click OK.

    Then Rerun the visual studio code application. It should work.

    Reference: https://www.youtube.com/watch?v=2835_ZJGCQA

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

    VS Code prompted a dialog at bottom right corner recommending me to switch the RenderType option to dom, because it felt it was running slow. Then the blank-terminal issued was gone. My environment was a vm of Ubuntu 16.04 running on win10.

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

    My solution for VSCode 1.39.2 with Ubuntu has been:

    File -> Preferences -> Setting -> Features -> Terminal -> Inherit Env

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

    I had the same problem while working on CMD in my VSCode. I fixed it by going to the Terminal Menu in the VS Code and selected New Terminal. And a new cmd terminal opened up and it working just fine.

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

    The solution for me was to uninstall the user mode and instead install system mode. This is what Jenuel Ganawed stated and I don't know why that post is downvoted. It solves the issue in my case.

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

    Remove the following line in settings.json file

    terminal.integrated.inheritEnv": false,
    

    You can locate settings.json file in the following locations —

    • Windows %APPDATA%\Code\User\settings.json
    • macOS $HOME/Library/Application Support/Code/User/settings.json
    • Linux $HOME/.config/Code/User/settings.json
    0 讨论(0)
提交回复
热议问题