如果使用 code API 出现这个问题的话
![]()
打开 VS搜索 settings.json 打开这个配置文件 把这段代码添加到 里面即可使用啦
![]()
代码如下
[upvote]
{
"files.autoGuessEncoding": true,
"workbench.colorTheme": "Visual Studio Dark",
"github.copilot.enable": {
"*": false,
"plaintext": false,
"markdown": false,
"scminput": false
},
"workbench.editor.empty.hint": "hidden",
"playwright.reuseBrowser": false,
"workbench.editorAssociations": {
"*.class": "default"
},
"claudeCode.preferredLocation": "panel",
"claudeCode.environmentVariables": [
],
"remote.SSH.useLocalServer": true,
"claudeCode.environmentVariables": [
{ "name": "HTTP_PROXY", "value": "http://127.0.0.1:7890" },
{ "name": "HTTPS_PROXY", "value": "http://127.0.0.1:7890" }
],
"http.proxy": "http://127.0.0.1:7890",
"https.proxy": "http://127.0.0.1:7890",
"php.validate.executablePath": "",
"workbench.startupEditor": "none",
"security.workspace.trust.untrustedFiles": "open",
"workbench.settings.applyToAllProfiles": [
]
}
注意7890改成你自己的端口!!!!
[/upvote]
希望能帮到有用的小伙伴
4
5
5 条回复
排序