- 步骤1
开始通过 WSL 使用 VS Code | Microsoft Learn
点击远程开发扩展包。
- 步骤2
Remote Development - Visual Studio Marketplace
点击install, 允许打开Visual Studio Code。
- 步骤3
共有4项,一齐安装。
- 步骤4
在WSL Linux(Ubuntu)中:
sudo apt-get install wget ca-certificates
- 打开步骤1
准备工作完成,终于可以打开源码目录了。
Ctrl+Shift+P,输入WSL,选择Connect To WSL
- 打开步骤2
菜单:File->Open Folder