我的个人博客:https://lixiaohui.live
- 1、解决在企业域内无法绕开代理服务器安装包的问题:
- 2、Sublime设置proxy代理
- 3、Visual Studio Code设置proxy代理
- 4、添加“Edit with VS code”到鼠标右键
1、解决在企业域内无法绕开代理服务器安装包的问题:
pip install --proxy=domain\v_xmmxhli@proxyServer:port pyodbc -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
其中proxyServer
是代理服务器名称或者IP,port
是端口号。
2、Sublime设置proxy代理
"http_proxy": "http://proxyServer:port",
"https_proxy": "https://proxyServer:port",
"ignored_packages":
[
"Vintage"
],
"proxy_password": "yourPassword",
"proxy_username": "domain\\v_xmmxhli",
"remember_open_files": false
其中proxy_username
为域用户,proxy_password
为域账户密码。
附常用sublime配置:
{
// "font_face": "'Monaco', '文泉驿等宽微米黑'",
"font_face":"文泉驿等宽微米黑",
"font_size": 14,
"hot_exit": false,
"http_proxy": "http://proxyServer:port",
"https_proxy": "https://proxyServer:port",
"ignored_packages":
[
"Vintage"
],
"proxy_password": "yourPassword",
"proxy_username": "domain\\v_xmmxhli",
"remember_open_files": false
}
3、Visual Studio Code设置proxy代理
{
"http.proxy": "http://proxyServer:port",
}
附常用code配置:
{
"git.ignoreMissingGitWarning": true,
"workbench.startupEditor": "newUntitledFile",
"editor.fontFamily": "Monaco",
"editor.fontSize": 16,
"http.proxy": "http://proxyServer:port",
}
其中proxy_username
为域用户,proxy_password
为域账户密码。
4、添加“Edit with VS code”到鼠标右键
保存以下文本为.reg
文件,双击执行
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""