设置包控制以在代理服务器后面工作
您需要在设置中设置代理服务器Package Control
。
将下面的代码复制并粘贴到一个名为的文件中,该文件Package Control.sublime-settings
必须保存在您的User
配置文件夹中。这与保存您的USER 文件的文件夹相同。数据目录说明了它在您的操作系统上的位置。IEPreferences.sublime-settings
- 视窗:
%APPDATA%\Sublime Text 3\Packages\User\Package Control.sublime-settings
- 操作系统:
~/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings
- Linux:
~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings
显然,您必须在下面的相关字段中添加域和端口以及您的用户名和密码。代理应采用以下形式:proxyserver:port
. 例如
{
"http_proxy": "server.com:80",
"https_proxy": "server.com:8080",
"proxy_username": "mynameis",
"proxy_password": "mypassis",
}
另请参阅:包控制设置
{
// An HTTP proxy server to use for requests. Not normally used on Windows
// since the system proxy configuration is utilized via WinINet. However,
// if WinINet is not working properly, this will be used by the Urllib
// downloader, which acts as a fallback.
"http_proxy": "",
// An HTTPS proxy server to use for requests - this will inherit from
// http_proxy if it is set to "" or null and http_proxy has a value. You
// can set this to false to prevent inheriting from http_proxy. Not
// normally used on Windows since the system proxy configuration is
// utilized via WinINet. However, if WinINet is not working properly, this
// will be used by the Urllib downloader, which acts as a fallback.
"https_proxy": "",
// Username and password for both http_proxy and https_proxy. May be used
// with WinINet to set credentials for system-level proxy config.
"proxy_username": "",
"proxy_password": "",
}