WSL开发环境

1. 安装和配置 WSL

WSL 全称 Windows Subsystem for Linux

Windows Powershell 中执行:

1
2
3
4
5
6
7
8
9
10
11
12
Add-Content -Path $HOME\.wslconfig -Value @'
[wsl2]
networkingMode=mirrored
defaultVhdSize=107374182400
'@

# install wsl, run as administrator
wsl --install

# set firewall, run as Administrator
# ref: https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/hyper-v-firewall
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
阅读更多

Windows 开发环境

1. 基础工具

1.1. 网络工具

Clash Verge

1.2. IDE

  • 下载并安装 VSCode 或者通过 Microsoft Store
  • 登录微软账号,开启配置同步,注意配置不同步 UI状态

1.3. Windows Powershell

1
2
3
4
5
# 创建 profile
New-Item -Path $PROFILE -Type File

# 配置执行策略, 参考 https:/go.microsoft.com/fwlink/?LinkID=135170
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
阅读更多