vscode c/c++ go definition功能突然失效

我遇到的原因是:分析插件更新,但是下载一直不成功。

components (Windows)’ Failed
VScode 更新c++插件时出现网络错误,无法在线更新c++插件
错误状态:Downloading package ‘C/C++ language components (Windows)’ Failed. Retrying… Failed. Retrying… Failed. Retrying…Waiting 8 seconds… Failed. Retrying…Waiting 16 seconds… Failed. Retrying… Done!
Downloading package ‘ClangFormat (Windows)’ Failed. Retrying… Failed. Retrying… Failed. Retrying…Waiting 8 seconds… Failed. Retrying…Waiting 16 seconds… Failed. Retrying… Done!
Downloading package ‘Visual Studio Windows Debugger’ Failed. Retrying… Failed. Retrying… Failed. Retrying…Waiting 8 seconds… Failed. Retrying…Waiting 16 seconds… Failed. Retrying… Done!
Installing package ‘C/C++ language components (Windows)’
Failed at stage: installPackages
Error: end of central directory record signature not found
If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/Microsoft/vscode-cpptools/releases, then use the “Install from VSIX” command in VS Code to install it.
2.我的网络没问题,梯子随便上,这还提示我网络原因,多半是网络代理出事了,解决办法可以很简单,自动忽视网络代理问题,直接采用VSCode提供的解决办法,离线安装VSIX。
3. 首先在https://github.com/Microsoft/vscode-cpptools/releases上下载c++extension,打开VScode,点击extension,在属性框右上角找到“Install form VSIX”

再选中下载好的VSIX包即可安装,之后重启VSCode完事
————————————————
版权声明:本文为CSDN博主「Jason_Gan」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/binuogan_c/article/details/90372885

另外,如何关闭自动更新

在setting里面搜索update,即可看到。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值