打造一个好用的 Windows 编程环境 0.准备工作
前置配置
-
- 设置 - 系统 - 储存 -
高级储存设置-保存新内容的地方。 -
- 右键
NAME(下载、文档、图片、音乐、视频) - 位置 - 移动 - 选择D:\USERNAME\NAME。 - 删除误操作生成的目录:如何删除 Windows 10 系统生成的 WindowsApps 文件夹。
- 右键
- 设置 - 系统 - 储存 -
-
- 设置 - 个性化 - 开始 - 文件夹:
设置+下载。
- 设置 - 个性化 - 开始 - 文件夹:
天选 6pro:
- 卸载软件:
-
- 奥创中心 - 首页 - 系统设置:
开机音效。
- 奥创中心 - 首页 - 系统设置:
-
- 奥创中心 - 设置 - 更新中心 - 检查更新->全部更新。
Scoop
若无说明,默认在 Windows 终端(非管理员)下操作。
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
-
配置代理(可选):
-
scoop install git 7zip aria2 sudo。
scoop config SCOOP_REPO https://mirror.nju.edu.cn/git/scoop.git # 切换到南京大学镜像源
scoop update
scoop bucket rm main
scoop bucket add main https://mirror.nju.edu.cn/git/scoop-main.git
scoop bucket add extras https://mirror.nju.edu.cn/git/scoop-extras.git
scoop bucket add versions https://mirror.nju.edu.cn/git/scoop-versions.git
scoop bucket add dorado https://github.com/chawyehsu/dorado.git
scoop install refreshenv openssl
Winget
TODO
配置
-
- 设置 - 隐私和安全性 -
开发人员模式:开。
- 设置 - 隐私和安全性 -
鉴权
ssh-keygen -t rsa -C "EMAIL"
cat C:\Users\USERNAME\.ssh\id_rsa.pub
Git
代理
- [ ]
# 设置代理
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
# 取消代理
# git config --global --unset http.proxy
# git config --global --unset https.proxy
# 查看配置
git config -l --global
用户信息
git config --global user.email "EMAIL"
git config --global user.name "USERNAME"
-
TODO
-
远程仓库。
Credential Helper Selector
配置好之后,第一次 git push(或别的需要鉴权的操作)可能会弹出 CredentialHelperSelector 窗口。
选择 manager-core,然后勾选 Always use this from now on 即可。
如果出现错误,可以运行 git credential-helper-selector 重新打开 CredentialHelperSelector。
浙公网安备 33010602011771号