Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure VS Code to remember proxy settings (Windows)

I'm a little bit fed up of this window:

VS Code proxy authentication window

I checked the configuration and I added the proxy URL to the http.proxy entry as described here:

"http.proxy": "http://frustratedusername:[email protected]:8080/"

But it didn't work. Then, I tried setting the http_proxy and https_proxy environment variables, but it didn't work neither.

Is there any way to make VS Code remember the proxy settings?

like image 228
amedina Avatar asked Apr 18 '18 06:04

amedina


People also ask

What is proxy setting in VS Code?

If your network requires a proxy to access the Internet, set the Visual Studio Code proxy as follows: Open Visual Studio Code, click the settings icon in the lower left corner, and click Settings.

How do I fix VS Code proxy error?

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.


1 Answers

Remembering proxy credential should now be supported, since VSCode 1.51 (Oct. 2020), and confirmed with VSCode 1.52 (Nov. 2020)

Remember proxy credentials#

We are overhauling the login dialog that shows when a network connection requires authentication with a proxy.
A new setting, window.enableExperimentalProxyLoginDialog: true, will enable this new experience that we plan to make the default in a future release.

Proxy Login -- https://code.visualstudio.com/assets/updates/1_51/proxy-login.png Theme: GitHub Light

The dialog will appear inside the VS Code window and offer a way to remember the credentials so that you do not have to provide them each time you start VS Code.
Credentials will be stored in the OS standard credential store (keychain on macOS, Windows Credential Manager on Windows, and gnome keyring on Linux).

We still only show this dialog once per session, but might revisit this decision in the future. You will see the dialog appear again in case the credentials you selected to be remembered are not valid. Providing them again allows you to change them.

like image 190
VonC Avatar answered Sep 28 '22 15:09

VonC