Try this solution, it worked for me:
cd $HOME/.config/Code
rm -r GPUCache
Source: https://medium.com/@syafiqza/blank-screen-in-visual-studio-code-d84707001c94
Answer from Premek on Stack Overflowvisual studio code - VSCode on Ubuntu 20.04 - black screen issue - Stack Overflow
Visual studio code (vscode) only show a blank window after a recent update
vscode crashing and just a blank window need help!
How do I fix a blank white screen for Visual Studio Code run remotely through X11? - Stack Overflow
Videos
Try this solution, it worked for me:
cd $HOME/.config/Code
rm -r GPUCache
Source: https://medium.com/@syafiqza/blank-screen-in-visual-studio-code-d84707001c94
I had the same issue on Ubuntu 20.04. You can open VScode by typing:
code --disable-gpu
In order to disable the hardware acceleration in vscode:
Click: ctrl + shift + p
Type:
Preferences: Configure Runtime Arguments
Uncomment the following:
"disable-hardware-acceleration": true
Restart VScode.
a few days back vscode was working just fine, but now when I open vscode I am getting the below attached screen. I don't even know where to start looking for a solution
General Info:
OS: Fedora 38
DE: Gnome
latest version of vscode
There is an issue for this upstream: https://github.com/microsoft/vscode/issues/110119
Running code --verbose --log debug --disable-gpu prints, among others:
[3440:1116/110926.098706:WARNING:x11_util.cc(1520)] X error received: serial 169, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 1 (X_ShmAttach)
[3440:1116/110926.129228:WARNING:x11_util.cc(1520)] X error received: serial 170, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 1 (X_ShmAttach)
[3440:1116/110926.170878:WARNING:x11_util.cc(1520)] X error received: serial 171, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 3 (X_ShmPutImage)
[3440:1116/110926.204224:WARNING:x11_util.cc(1520)] X error received: serial 172, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 3 (X_ShmPutImage)
I don't know much about X, but I would expect X shared memory (shm) to not work via X forwarding, and maybe it's something that vscode currently needs?
For me the "--disable-extensions --disable-gpu" options worked.
My solution for VSCode 1.39.2 with Ubuntu has been:
File -> Preferences -> Setting -> Features -> Terminal -> Inherit Env
I have the same problem with PowerShell even after installing the 1.32.1 update. I fixed it by going to PowerShell options and checked the "Use legacy console" option and now it works as it should and I thinks it should work with cmd too.
Following the latest TW updates, vscode shows a blank screen with a single blue line at the top. Mouse clicks appear to work as normal. No error messages when started from the command line. Is anyone else having this problem?
Thanks
Albert
To fix this for VS Code 1.18 (8 November 2017)
Right-click on Shortcut and add --disable-gpu to Target:
"C:\Program Files\Microsoft VS Code\Code.exe" --disable-gpu

I had same problem in windows 7,have resolved by following above 2 steps:
1.Right-click on VS Code Shortcut -> go to properties -> add --disable-gpu to Target:
"C:\Program Files\Microsoft VS Code\Code.exe" --disable-gpu
2.setting the compatibility with windows 7 in VsCODE shortcut properties.
Hello all, I have Ubuntu running on my macbook air m4 using UTM. I'm trying to download VSCode using the official .deb arm64 from vscode website, and the process completes. I'm typically able to open VSCode but ANY action leads to the back screen above: open new folder, close window, etc. I saw some sources online say its best to download from ubuntu app center but that I can't find the app on there either. Any help is much appreciated.
Update: Decided to uninstall the VM and use a different VM, provided by the school and it all works well now. Thanks all for the supports