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

后端 未结 9 1889
谎友^
谎友^ 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:41

    If you don't want to store your credentials in the settings file, fiddler can be used to proxy the call to the proxy. Furthermore, I believe the above only works for proxy servers using basic authentication, the following should work for NTLM.

    VSCode Open Settings File:

    %APPDATA%\Code\User\settings.json

    add the following:

    {
        "http.proxy": "http://127.0.0.1:8888",
        "http.proxyStrictSSL": false
    }
    

    Fiddler Confirm fiddler settings:

    Fiddler Ensure Fiddler set to automatically authenticate:

    VSCode Extensions should now be online:


    Update

    This is now no longer required following implementation of PR #22369 which was implemented in version 1.15 Proxy server authentication.

    In my case I still needed to add:

    "http.proxyStrictSSL": false
    

提交回复
热议问题