How to specify a user id and password for Visual Studio Code with an authenticating proxy?

后端 未结 9 1935
谎友^
谎友^ 2020-12-08 01:38

How to specify a user id and password for Visual Studio Code with an authenticating proxy?

I\'ve seen the Proxy Server Support on the main VS Code site, but this onl

9条回答
  •  醉酒成梦
    2020-12-08 01:58

    My favorite response here is David Martin's suggestion of using Fiddler. But in case that is not something you want to undertake, below is how to set your credentials for the proxy.

    To specify DOMAIN + username + password: (It will likely not work with a slash, so use %5C in the place of the slash as shown below)

    // The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables
    "http.proxy": "http://DOMAIN%5Cusername:password@proxy_name_or_ip:port",
    "https.proxy": "http://DOMAIN%5Cusername:password@proxy_name_or_ip:port",
    
    // Whether the proxy server certificate should be verified against the list of supplied CAs.
    "http.proxyStrictSSL": false,
    

    To specify just username + password:

    // The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables
    "http.proxy": "http://username:password@proxy_name_or_ip:port",
    "https.proxy": "http://username:password@proxy_name_or_ip:port",
    
    // Whether the proxy server certificate should be verified against the list of supplied CAs.
    "http.proxyStrictSSL": false,
    

提交回复
热议问题