visual-studio-code - 值必须匹配正则表达式 '^https?://([^@
问题描述
我正在尝试通过在我的 VSCode 中导入我的代理来更新我的设置。
我收到以下错误:
Value must match regex '^https?://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$'
我在我的设置下拥有的是
"http.proxy": "http://user:sample.proxy.com:123"
"https.proxy": "http://user:sample.proxy.com:123"
"http.proxyStrictSSL": false
有什么我需要改变的吗?
解决方案
该错误为您提供了所需的所有信息;它与所需的格式不匹配。
通常,如果您想包含用于身份验证的用户名和密码,则需要采用以下格式:
http://<user>:<password>@<url><:port>
"http.proxy": "http://user:password@sample.proxy.com:port#"
推荐阅读
- client - 在asp.net c#中的客户端存储数据
- angular - 测试组件时特征存储的 NullInjectorError
- sql-server - 您可以在 SQL 中将多个列名设置为要查询的宏吗?
- c# - WPF 中作用域 EF Core DbContext 的生命周期
- c# - 拆分电子邮件ID并按条件每次取10个ID
- swiftui - 动画快门按钮,如 SwiftUI 中的相机应用程序
- c - 递增字符数组中的地址时出现编译器错误
- java - mybatis 在插入数据库时会更改时区吗?
- r - 在具有负数和正数的数据框中查找最大负数和最小正数
- javascript - 如何转换数组