本文介绍了vscode中代理的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次测试 VSCode,并按照建议在 settings.json 中配置了我的代理:

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

但是当我尝试安装新扩展时它不起作用我收到连接超时错误.我还尝试将代理配置为具有相同结果的系统环境变量.你可以帮帮我吗?这是一个错误还是我做错了什么?还有其他下载扩展程序的方法吗?

非常感谢!

解决方案
  1. 使用以下命令启动 vscode

    代码 --proxy-server="xxx.xx.xx.xx:port"

  2. 在桌面上为 vscode 添加命令

    /usr/share/applications/code.desktop

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

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

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!

解决方案
  1. start vscode with below command

  2. add command in desktop for vscode

    /usr/share/applications/code.desktop

这篇关于vscode中代理的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 09:16