How to get IntelliSense to reliably work in Visual Studio 2008

后端 未结 12 1574
暗喜
暗喜 2020-12-08 04:13

Does anyone know how to get IntelliSense to work reliably when working in C/C++ projects? It seems to work for about 1 in 10 files. Visual Studio 2005 seems to be a lot bett

12条回答
  •  庸人自扰
    2020-12-08 04:40

    @John Richardson / @Jonathan Holland

    My includes are setup correctly, no problems there. I've also tried the NCB rebuild several times but it never fixes it 100%.

    I have a feeling it may be to do with forward declarations of classes. e.g. to reduce the complexity of includes in header files we normally do something like:

    class MyPredeclared;
    
    class SomeOtherClass
    {
    private:
        MyPredeclared* m_pPointer;
    }
    

    I wonder if that screws it up? Any other ideas? It definitely gets worse the larger your project gets.

提交回复
热议问题