vs2015c语言更新功能,c – 在Visual Studio中刷新自动完成(IntelliSense)数据库

我注意到,一旦我的项目达到一定的大小(在我的情况下~4,100行代码),Visual Studio中的自动完成功能将无法正常工作.我还注意到,一旦第三方库的数量增加(名称空间和类属性和方法不再可见),性能也会降低.

有没有办法手动更新自动完成数据库或为现有项目创建新数据库?

解决方法:

对于VS2015,2017和VS2019关闭Visual Studio并删除与解决方案相同的文件夹中的.vs文件夹.它包含intellisense数据库(如果我们知道哪些文件,应该可以只删除特定于intellisense的文件).请注意,如果删除整个文件夹,您将丢失窗口布局配置等.

对于以前的版本,请关闭Visual Studio并导航到项目文件夹. * .sdf文件包含intellisense数据库 – 如果删除此文件并在visual studio中重新打开项目,它将重建缓存.

删除sdf文件为我解决了问题.

Sometimes working with a big solution (mainly C++ projects) becomes

unbearably slow. To fix it you need to close the solution and go

delete the .SDF file. After that it returns to normal again, for about

a week, or so until you need to do it again.

The underlying cause is that the SDF file gets fragmented and,

according to xperf profiling I’ve done, VS will sometimes do 20,000+

random reads from it when changing between debug and release. Putting

the SDF files on an SSD fixes the problem but should not be necessary.

VS needs to use the SDF file more efficiently and not do blocking SDF

operations, ever.

标签:c,windows,visual-studio-2010,visual-studio-2008

来源: https://codeday.me/bug/20190930/1835515.html

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值