How To Fix VSCode Blank Screen Issue?

If you’re getting a blank screen when launching the VSCode or after the fresh installation of the visual studio code application on your system, don’t worry! In this article, we’re going to discuss what causes this to happen and how we can resolve it.

The blank window stayed that way; there wasn’t a way around it because no controls were visible on the window aas it was blank. It doesn’t matter which operating system you’re using, users of both Mac and Linux reported visual studio code blank window issue.

Why VSCode? Coders prefer VSCode over other IDEs because it’s efficient and lightweight.

Visual Studio Code Blank Screen Issue

The first thing everyone would try to do is re-install the VSCode. It was helpful in my case. You’re probably reading this tutorial because you’re also facing a similar problem. I’m sharing every possible way to resolve this issue because it can be frustrating when your favorite IDE isn’t loading up.

1. Disable GPU Rendering

Disabling GPU rendering can help resolve your blank screen issue. We have to use the --disable-gpu argument in shortcut properties to disable the GPU hardware acceleration.

Disable GPU:

  1. First, locate VSCode shortcut.
  2. Then right-click and go to Properties.
  3. If you go to shortcut tab there’s Target field: “C:\Users\Noor\AppData\Local\Programs\Microsoft VS Code\Code.exe” and we have to append --disable-gpu argument ahead or --disable-gpu-compositing.

Now, launch the application and see if that resolved the blank window issue on visual studio code.

Change Compatibility Mode:

You can try another thing here, like changing the Compatibility settings and the Compatibility mode to something different, to see if that help resolve the issue.

  1. Right-click on VSCode shortcut and click on Properties.
  2. Now, navigate to Compatibility tab.
  3. Change the Compatibility mode to this, If you’re using Windows 10 select Windows 8, or choose randomly.

Now save the settings and launch the application to see if that helps.

2. Disable GPU Through Command Line

If, for some reason, the above method doesn’t work for you, disabling GPU support can be done via the command line as well. To do that,

First, launch Command Prompt and type: code --disable-gpu

Executing this command will launch the visual studio code. The argument we passed will disable the GPU acceleration.

You can try using: code --disable-gpu-compositing or both code --disable-gpu --disable-gpu-compositing.

If you have code insiders beta version installed then the commands would be:

code-insiders --disable-extensions --disable-gpu --user-data-dir .
code-insiders --disable-gpu

This would probably resolve your blank window issue; if not, move towards another method. If you want to further investigate through the command line, use --verbose to output on the command line and use --log debug to output logs when executing the code command.

3. Remove VSCode Cache & Everything

If none of the above methods worked for you. In that case, there’s always a simple solution for re-install, but before that, let’s remove the cache and delete some directories to avoid going through the installation process.

This would be a cleanup cache process to improve the performance of VSCode and the error we’re facing.

Directories to remove:

  • C:\Users\Noor\AppData\Roaming\Code
  • C:\Users\Noor\.vscode

You can replace the username with yours and delete both the directories.


In my case, uninstalling VSCode and removing the cache directories afterward help resolved the issue. Let me know if these methods helped resolve the issue. If you still have questions, please feel free to comment below.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button