06 August 2015

Using Atom editor behind a proxy

Many companies love their internet proxies and the place where I work is no different. When I took the new 1.0 version of Atom editor for a spin the package manager complained that there was no internet connection. The reason was that it can't detect the default proxy settings in Windows. I had to specify the proxy settings manually.

The way to do that is to create the file .apmrc in the atom user settings directory. On Windows that will be something like :

C:\Users\username\.atom

Create the file (or update if it already exists) and add the regular proxy settings. Change proxy and port to suit your setup

http-proxy=http://proxy:1234
https-proxy=http://proxy:1234

We have an anonymous proxy here at work but if you need to specify user and password that would look something like this:

http-proxy=http://user:password@proxy:1234
https-proxy=http://user:password@proxy:1234