默认安装的话:如下 Although WSL2 is intended as a command line tool for developers, a desktop environment can be run inside WSL2 and you can use an X Server for Windows such as Xming or VcXSrv to listen for X11 (graphical) programs in Linux.
Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment. MobaXterm is the app I'm using for my ssh server and it has a built in X Server. The whole story begins with the installation of WSL2, which is now available with the current version of Windows (Windows 10, version 2004, build 19041 or higher). JetBrains IDEs are more thorough, kind of Apple like vertical integration while VS Code is more like Windows: hack everything together. VSCode 的朋友们可能要说:切,这个功能,VSCode 早就有了。 All my files are within the WSL2 environment. I can still use the WSL2 environment while the IDE craps its pants though.