开发环境配置
NodeJS
修改缓存目录
shellnpm config set prefix "D:\node\node_global" npm config set cache "D:\node\node_cache"
配置 npm 镜像源
shellnpm config set registry https://registry.npmmirror.com
Git
- 下载(免翻墙地址)
https://registry.npmmirror.com/binary.html?path=git-for-windows/ - 全局配置shell
git config --global user.name "tom" git config --global user.email tom@example.com
- 转移代码所有权shell
git config --global --add safe.directory "*"
- 设置 git pull 命令的行为,从默认 merge 改为 rebaseshell
git config --global pull.rebase true
- 设置 git 全局缓冲区大小shell
git config --global http.postBuffer 524288000
- 下载(免翻墙地址)
SSH
- 通用shell
ssh-keygen -t rsa -C "tom@example.com"
- Coding
https://coding.net/help/docs/repo/ssh/config.htmlshellssh-keygen -m PEM -t ed25519 -C "tom@example.com"
- 通用
VS Code
- 下载
https://code.visualstudio.com/
下载地址中域名部分替换为vscode.cdn.azure.cn
可提速 - 添加配置文件
- 安装全局 code 命令
在软件界面command + shift + p
,选择install 'code' command in path
- 下载
Office