How to Set Up Proxy Settings for Advise for Visual Studio Code

Description

This article will describe how to specify your proxy settings when running Advise behind a proxy in Visual Studio Code.

Instructions:

There are two supported ways to pass the proxy settings to Advise:

Option 1:

  1. Open Visual Studio Code

  2. Navigate to File > Preferences > Settings

  3. Select Application > Proxy in the sidebar

  4. In the available fields, insert the proxy URL and credentials as: http://user:pass@my.proxy.address:8080


    Note: This will update the settings.json file referenced in Option 2.

Option 2:

  1. Navigate to the settings.json file

    Windows: %APPDATA%\Code\User\settings.json
    macOS: $HOME/Library/Application Support/Code/User/settings.json
    Linux: $HOME/.config/Code/User/settings.json

  2. Add the following text to the settings.json file:

    {
        "http.proxy": "http://user:pass@my.proxy.address:8080",
        "http.proxyStrictSSL": false,
    }
    
  3. Restart Visual Studio Code

Note:

For both of these options please confirm that the HTTP Proxy Settings are set to ‘override’. To do so, complete the following steps:

  1. Open Visual Studio Code

  2. Go to Settings > Application > Proxy

  3. In the drop down list next to ‘http: Proxy Support’ select ‘override’