Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problems with proxy in vscode

I'm testing VSCode by first time and I configure my proxy in settings.json as recommended:

"http.proxy": "http://domain\user:pass@myproxy:port/"

But it doesn't work when I try to install new extensions I get a connected timeout error. I also try to configure the proxy as system environment variable with the same result. Could you help me? Is it a bug or I'm doing something wrong? Is there another way to download extensions?

Thank you very much!

like image 267
pemola Avatar asked Feb 06 '23 19:02

pemola


1 Answers

  1. start vscode with below command

    code --proxy-server="xxx.xx.xx.xx:port"

  2. add command in desktop for vscode

    /usr/share/applications/code.desktop

    Exec=/usr/share/code/code --proxy-server="xx.x.x.xx:xxx" --unity-launch %F

like image 125
li.qzeng Avatar answered Mar 04 '23 21:03

li.qzeng