Skip to main content

Visual Studio Code Blank Screen or Black Screen Error - Solved


When you open Visual Studio Code you get a black screen and cant see anything.here is the Fix for you.

 For windows Users:

                        

        Fix_1:

                        

Add --disable-gpu --disable-gpu-compositing to the vs code shortcut on your desktop.



Example:

Put this command at the target column

--disable-gpu --disable-gpu-compositing

Click Apply and OK.

Now Restart Vscode.


Fix_2:


Find the Latest Version of VsCode https://code.visualstudio.com/Download

And install it. After installation Still You are facing Same issue Follow The instructions 

in #Method_1



For Ubuntu or Linux Users:

The file to edit is /usr/share/applications/code.desktop

Change:

Exec=/usr/share/code/code --unity-launch %F

To:

Exec=/usr/share/code/code --disable-gpu --unity-launch %F




For macOS users:



Try the following commands in the terminal :


Goto Applications folder :

cd Applications

Open VS Code with GPU Disabled :

Visual\ Studio\ Code.app/Contents/MacOS/Electron --disable-gpu


Note : You might need to supply sudo with second command.

Comments