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 only mentions two settings ...
"http.proxy": "http://10.203.0.1:5187/" "http.proxyStrictSSL": false
I've set these, but still no luck, e.g. I can't install extensions ... can't even get a list of them
I suspect it's our proxy, as it needs a user id and password :-(
So how can you set these values?
Proxy Password (-proxyPassword)Password used to authenticate the AppServer client to the HTTP-based Proxy server.
Here is a solution in Windows 7. Change the system proxy to your proxy, like localhost:3128 , in Internet Options => Connections => LAN Settings. After a version (1.35. 0 maybe), the proxy settings in the Settings of vscode seems not working.
Tools->Options->Web Browser->Internet Explorer Options->Connections-> LAN settings-> Proxy server -> Advance add your proxy IP and port here.
Set credentials inside the proxy url:
http://username:[email protected]:5187/
WARNING: Setting your password in plaintext in a file can easily lead to your account being compromised. Further it might violate your companies data security guidelines. https://cwe.mitre.org/data/definitions/256.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With