Collated info from various github issues
It is useful to run code --verbose
until you get things working.
-
First install Xming / alternative, add
export DISPLAY=:0.0
to your~/.bashrc
-
Install the vs code package
-
sudo apt install libgtk2.0-0 libxss1 libasound2 libgl1-mesa-glx
-
Solve GLX issues by following microsoft/vscode#3451 (comment)
If you have Pulseaudio installed from other packages, you're gonna want this package: https://launchpad.net/~therealkenc/+archive/ubuntu/wsl-pulseaudio