Through Windows VS Code
Open the code in Windows and click the small computer icon, then you can retrieve the projects under the Linux environment by clicking “connect in a new window”.
You can connect the docket in the same way.
Through CMD
Open CMD in Windows, then enter the following command:
wsl
上传文件
想用 VScode 上传文件的时候,
需要打开一个本地有配置文件的文件夹,然后修改配置文件,
依次选择文件右键 - upload 上传
打开图形的文件夹
explorer.exe .
reference
https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-vscode
https://blog.csdn.net/qq_42951560/article/details/124058529
有时候连不上是因为本地的服务没关
这个服务还等着连呢,但是 IP 端口已经变了