Intellisense 不适用于 VS2010 中的某个特定项目
提前致谢。 这个问题浪费了我一整天的时间。 Visual Studio 2010 中的 Intellisense 适用于我的解决方案中除一个项目之外的所有项目。它过去一直有效,直到昨天,今天它不再适用于该单个项目。任何人都可以建议解决此问题的方法吗?
我尝试过的事情:删除.ncb文件,重新启动VS 2010,重新启动PC,检查工具->选项-文本编辑器->c#和常规设置以启用建议。但这些步骤都没有帮助我。
问候 亚什
Thanks in advance.
This problem has killed one whole day of my time.
Intellisense in Visual Studio 2010 works on all projects in my solution except one. It used to work until yesterday and today it just doesn't work particularly for that single project. Can anyone suggest a workaround for this?
Things I tried: deleted the .ncb file, restarted VS 2010, restarted PC, checked in tools->options-texteditor->c# and General settings to enable suggestions. But none of these steps helped me.
regards
Yash
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在不同的电脑上使用相同的解决方案是否会发生同样的情况?
如果是这样,请尝试将相同的文件添加到新项目中,看看会发生什么?
Does the same thing happen on a different pc in the same solution?
If it does, try adding the same files to a new project and see what happens?
在运行调试器时编辑一些代码后,我遇到了类似的问题。我所做的是退出调试模式,重新启动 VS 2010 并重建解决方案。希望有帮助
I experienced a similar problem after editing some code when running the debugger. What I did was exit debugging mode, restart VS 2010 and Rebuild Solution. Hope it helps
尝试在安全模式下运行 VS 2010。
如果安全模式根本没有帮助,请转到工具 > 选项...,点击文本编辑器折叠,然后点击所有语言。在语句完成下,确保选中(勾选)所有这些。
更新:您还可以尝试重置 VS 2010 设置< /a>
Try to run VS 2010 in safe mode.
If Safe Mode does not help at all, go to Tools > Options..., click Text Editor to collapse, then click All languages. Under Statement completion, make sure you check (tick) them all.
Update: You can also try resetting your VS 2010 settings
我不知道这是否会对任何人有帮助,但我通过删除 ncb 文件和 suo 文件来解决问题。此后(在 VS 2008 中),eibhrum 所描述的“语句完成”选项有一个灰显框(已选中),而“显示”选项则所有框均已灰显(并已选中)。我都检查过了。
我尝试仅检查语句选项(在删除 ncb 和 suo 文件之前),但这不起作用。在我过去两个小时多次尝试解决此问题之前,我从未尝试过检查显示选项(我喜欢“Yash”有一个无法正常工作的项目;但将该项目重置回昨天的 cpp 和 h 文件工作并没有解决问题)。
我认为(注意认为)删除 suo 文件是硬重置您的设置选项。
最后我不明白为什么会出现这个问题,所以这是一次令人沮丧的尝试和错误。也许我的方法会对那里的人有所帮助。这当然是一个非常常见的问题!
I don't know if this will help anyone but I got the problem to resolve by deleting the ncb file AND the suo file. After that (In VS 2008) the Statement completion option as described by eibhrum had one grayed out box (checked) and the Display option had all boxes grayed out (and checked). I checked them all.
I tried checking just the statement options (prior to my deletion of both the ncb and suo files) and that did not work. I never tried checking the display options before during my last two hours of multiple attempts to resolve this issue (I like 'Yash' had one project that did not work; yet resetting that project back to the cpp and h file it had yesterday when it worked did not resolve the problem).
I think (note think) that deleting the suo file is a hard reset your settings option.
In the end I don't understand why the problem arises so its a damn frustrating trial and error. Maybe my approach will help someone out there. Its certainly a very common problem!