Sometimes, in C++ projects, Visual Studio IntelliSense stops working with apparently no reasons. There are many official and non official guides on how to troubleshoot it and they almost always say that, given some conditions are respected, if IntelliSense doesn’t work, it is suggested to delete its database to let Visual Studio rebuilds it. To be able to do it, it is necessary to close the current solution, otherwise windows wouldn’t allow the access to the .ncb file.
However this procedure apparently doesn’t work for me. I have found that I also need to close the IDE and do something else. Here it follows the – at least for me – working sequence:
- clean the solution
- close the solution
- close Visual Studio
- delete the .ncb file
- open Visual Studio
- load the solution and clean it again
- rebuild the solution
What I find particularly annoying is that after a while the buggy IntelliSense goes crazy again and I have to stop working and repeat the whole sequence again. That’s a notable waste of time!
I have reproduces this problem on some computers, with VS 2005 and 2008, and with XP and Vista, but only with unmanaged C++. I haven’t tried managed C++, while a colleague of mine says it doesn’t happen with C#.
Comments or – possibly useful
– suggestions?
Related posts:
- l’installazione di Visual Studio
- stupido visual studio!
- double-check your damn pointers, okay?
- Samsung ML 3051 ND as a network printer on Ubuntu Linux
Tags: C++, Intellisense, microsoft, troubleshoot, Visual Studio
