0

Visual Studio Code代理设置

 1 year ago
source link: https://vpsxb.net/4113/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Visual Studio Code代理设置

> 实用教程 > Visual Studio Code代理设置
202206191902179.png

DevEco Device Tool的运行依赖于C/C++和CodeLLDB插件,在安装DevEco Device Tool过程中,会自动从Visual Studio Code的插件市场下载和安装。如果网络不能直接访问Internet,而是需要通过代理服务器才可以访问。这种情况下,设置Visual Studio Code代理,才能正常安装C/C++和CodeLLDB插件。

打开Visual Studio Code,点击左下角设置按钮,选择Settings

202303112157312.png

在搜索框输入“proxy”,然后在Http:Proxy中设置代理服务器信息

如果使用的代理服务器需要认证,请按照如下方式进行设置(请将username、password、proxyserver和port按照实际代理服务器进行修改)。

http://username:password@proxyserver:port



  1. 如果password中存在特殊字符,如@、#、*等符号,可能导致配置不生效,建议将特殊字符替换为ASCII码,并在ASCII码前加百分号%。常用符号替换为ASCII码对照表如下:
  2. !:%21
  3. @:%40
  4. #:%23
  5. ¥:%24
  6. &:%26
  7. *:%2A
  8. +:%2B
202303112159652.png

如果使用的代理服务器不需要认证(不需要帐号和密码),请按照如下方式进行设置。



  1. http://proxyserver:port

https://device.harmonyos.com/cn/docs/documentation/guide/vscode_proxy-0000001074231144


VPS小白 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK