Home:ALL Converter>How do I run VSCode in WSL in X server environment?

How do I run VSCode in WSL in X server environment?

Ask Time:2022-09-17T03:49:48         Author:validname

Json Formatter

I have WSL 2 installed with Ubuntu and the i3 window manager. I want to run VSCode in the i3 x server environment, but whenever I run VSCode it's opened as a Microsoft Windows window. How do I force VSCode to be executed in the i3 x environment?

The main reason I use i3 is for tiling and lovely shortcuts, and the fact that VSCode is executed outside of this tiling environment makes it absolutely useless.


System information

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:    20.04
Codename:   focal

I3 wm version

i3 version 4.17.1 (2019-08-30) © 2009 Michael Stapelberg and contributors

vscode version

1.71.2
74b1f979648cc44d385a2286793c226e611f59e7
x64

Author:validname,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73749714/how-do-i-run-vscode-in-wsl-in-x-server-environment
yy