vscode中WSL插件的安装配置

1.安装WSL插件

2.点击左下角的蓝色区域,Connect to WSL连接下载Linux系统,我这里下载Ubuntu

!在这里插入图片描述(https://i-blog.csdnimg.cn/direct/7ec21d81b4ec49f3856be2d8013bc12f.png

3.输入用户名和密码

4.成功连接

5.配置过程中出现的问题

**wsl: 检测到 localhost 代理配置,但未镜像到 WSL。**NAT 模式下的 WSL 不支持 localhost 代理。

解决方法:在 win+R打开运行框输入 %USERPROFILE% 命令打开用户目录,打开或新建 .wslconfig 文件并输入如下代码:

复制代码
[experimental]
autoMemoryReclaim=gradual  # gradual  | dropcache | disabled
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
相关推荐
bkspiderx11 小时前
在Visual Studio中安装与配置Qt插件(Qt Visual Studio Tools)
ide·qt·visual studio·qt插件
lusklusklusk1 天前
使用Visual Studio一步步创建并部署SSRS_PBIRS报表:数据源配置、图表设计、参数化查询、部署参数与排错实战
数据库·ide·visual studio
解道Jdon1 天前
Rust重写OpenCode Rune:性能提升最高100倍
ide·windows·git·svn·eclipse·github·visual studio
莫卢俊德1 天前
vscode ssh config
ide·vscode·ssh
郝学胜-神的一滴3 天前
Effective Python 条款44:善用属性注解
开发语言·c++·vscode·python·算法·stl
BD_Marathon6 天前
安装Jupyter notebook
ide·python·jupyter
讓丄帝愛伱7 天前
Zed Markdown 预览不能铺满全屏的原因及解决
ide
FungLeo8 天前
FengCMS · PHP+MySQL 升级实录 · 编辑器迁移:KindEditor → wangEditor5 +服务端 HTML Purifier
mysql·编辑器·php·富文本编辑器·fengcms
BD_Marathon8 天前
Jupyter魔法命令
ide·python·jupyter
郝学胜-神的一滴8 天前
Effective STL 条款 07:指针容器销毁前先删除
开发语言·c++·vscode·leetcode·rpc·visual studio