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

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

    Please take ref to this article. https://taeguk.co.uk/blog/working-in-visual-studio-behind-the-firewall/

    Let’s assume my NTLM login is DOMAIN\User Name and my password is P@ssword! The format for the credentials needs to be DOMAIN\User Name:P@ssword!, but you need to URL Encode the user name and password. A simple online URL encoded can translate your username and password to: DOMAIN%5CUser%20Name and P%40ssword!. Piece all this info into a single string like so: http://DOMAIN%5CUser%20Name:P%40ssword!@proxy-cluster.fqdn.local:8881 Then add this into your User Settings in File, Preferences against the "http.proxy" value: // Place your settings in this file to overwrite the default settings { "http.proxy": "http://DOMAIN%5CUser%20Name:P%40ssword!@proxy-cluster.fqdn.local:8881" }

提交回复
热议问题