Setting Up Package Control to Work from Behind a Proxy Server
You will need to setup your proxy server in the Package Control
settings.
Copy and paste the code below into a file called Package Control.sublime-settings
which must be saved in your User
config folder. That is the same folder as your USER Preferences.sublime-settings
file is saved in. The Data Directory states where this is on your operating system. i.e.
- Windows:
%APPDATA%\Sublime Text 3\Packages\User\Package Control.sublime-settings
- OS X:
~/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings
- Linux:
~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings
Clearly you must add the domain and port and your user name and password in the relevant fields below. The proxy should be in the form: proxyserver:port
. e.g.
{
"http_proxy": "server.com:80",
"https_proxy": "server.com:8080",
"proxy_username": "mynameis",
"proxy_password": "mypassis",
}
See also: Package Control Settings
{
// 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": "",
}