Windows 开发环境

最佳实践 3 分钟阅读 更新于 2024-10-06

1. 基础工具

1.1. Shell

在应用商店安装 Windows Terminal 和 PowerShell

配置 Powershell

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

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

配置 Windows Terminal的

见美化 Windows Terminal

1.2. 网络工具

Clash Verge

1.3. Vscodium

安装

1
winget install --id VSCodium.VSCodium -e --source winget

1.4. Git

安装和配置:

1
2
3
4
5
6
7
8
9
10
# 安装
winget install --id Git.Git -e --source winget

# 配置
git config --global user.name "Michael Ding"
git config --global user.email "yandy.ding@gmail.com"
git config --global core.symlinks true

winget install --id GitHub.cli -e --source winget
gh auth login

自动补全:

1
2
3
4
5
6
7
8
# 安装
Install-Module -Name posh-git -Repository PSGallery -Scope CurrentUser

# 配置 $PROFILE
Add-Content -Path $PROFILE -Value @'
# posh-git
Import-Module -Name posh-git
'@

1.6. 7-zip

安装 7-zip

1
winget install --id 7zip.7zip -e --source winget

1.7. WSL(Windows Subsystem for Linux) [可选]

安装 WSL

2. Language

标签: windows

如果这篇文章对您有帮助,欢迎打赏支持