对于VScode中Copilot插件使用卡顿问题的解决办法
copilot卡顿主要是网络和内存占用原因。
VScode内存优化解决办法:
结合链接和我补充的基本都可以解决。
解决VSCode无缘无故卡顿的问题_vscode卡顿-ZEEKLOG博客
在VScode中打开setting.json文件,打开方法ctrl+shift+p,输入Preferences: Open User Settings (JSON),
然后添加如下代码:
{ "search.followSymlinks": false, "git.autorefresh": false, "editor.formatOnSave": false }结合链接和我补充的基本都可以解决。
VScode代理问题:
vscode copilot长时间没反应_vscode中copilot总是卡住-ZEEKLOG博客
配置代理的话两种方法,上面是一种,推荐两种结合起来用(不冲突)
还是在setting.json文件中,添加如下代码:
{ "http.proxy": "http://127.0.0.1:7890", "http.proxyStrictSSL": false }设置extension host
这一种解决方法很好用,参考链接中第二种解决办法:
(46 封私信 / 81 条消息) [解决]Vscode copilot连不上/ssh之后连不上的问题 - 知乎

下面是我的setting.json文件,可以直接使用:
{ "python.linting.flake8Enabled": true, "python.formatting.provider": "yapf", "python.linting.flake8Args": ["--max-line-length=248"], "python.linting.pylintEnabled": false, "search.followSymlinks": false, "git.autorefresh": false, "editor.formatOnSave": false, "remote.extensionKind": { "GitHub.copilot": ["ui"], "GitHub.copilot-chat": ["ui"], }, "http.proxy": "http://127.0.0.1:7890", "http.proxyStrictSSL": false, "github.copilot.nextEditSuggestions.enabled": true, "explorer.confirmDelete": false } 如果上述方法都不行,建议删了VScode和Copilot插件,重下(本人使用,亲测有效),然后再按照上面的步骤来一遍,基本可以解决绝大多数问题。
补充一下,还有可能是插件冲突,需要注意一下
