webstorm的代理设置

一:自身代理配置

官方文档:HTTP Proxy | WebStorm Documentation (jetbrains.com)
影响插件、工具下载等常用请求

二:Git代理配置

#设置全局代理
git config --global http.proxy http://127.0.0.1:10811
git config --global https.proxy https://127.0.0.1:10811
git config --global http.proxy socks5://127.0.0.1:10810
git config --global https.proxy socks5://127.0.0.1:10810

#只对github.com使用代理,其他仓库不走代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:10810
git config --global https.https://github.com.proxy socks5://127.0.0.1:10810
#取消github代理
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy

#取消全局代理
git config --global --unset http.proxy
git config --global --unset https.proxy

影响代码仓库的拉取、推送及git的其他请求

三:Npm代理配置

#直接代理
npm config set proxy http://127.0.0.1:18011
npm config set https-proxy https://127.0.0.1:18011

#授权代理
npm config set proxy http://username:password@127.0.0.1:18011
npm config set https-proxy https://username:password@127.0.0.1:18011

#取消代理
npm config delete proxy
npm config delete https-proxy

影响npm下载、推送等