WSL可能是目前最好的"Linux发行版",网友们是这样评价它的。确实很方便,也很符合大部分开发者的胃口。
Win10 Pro 开启 WSL
设置 ---> 应用 ---> 程序和功能 ---> 启用或关闭 Windows 功能
勾选(添加) 适用于 Linux 的 Windows 子系统

Microsoft Store ---> 搜索 ---> Ubuntu 18.04 LTS
获取并安装

效果


Cmder 一款cmd神器
网上关于Cmder的博文很多,大家可自行搜索。本文主要记录Cmder操作WSL的一些相关内容。
官网
github repo
Cmder打开WSL:
点击右下角的 ➕ ,选择 WSL --> bash
或直接将启动任务默认指定为 {WSL::bash}


-
效果图
image
VScode 设置终端为 WSL
settings.json
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe"
}

Pycharm 调用WSL内的 Python
2018最新版的Pycharm也可直接调用WSL内的Python了


- WSL / 路径
- C:\Users\Users\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\
网友评论