How to get IntelliSense to reliably work in Visual Studio 2008

后端 未结 12 1575
暗喜
暗喜 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:53

    My fix to itellisense was required after that awful refactor utility minced my code. The problem was a class header file that included an #include of itself. The recursive reference destroys itellisense. A symptom of this is if itellisense can see other classes but not the current one. Also:

    Use #pragma once to eliminate duplicate header loads

    If the project now takes a very much longer time to load, that itellisense trying to make sense of the conflict that is causing then lack of completion support.

    Often it is only one class object that is affected, This shows you what files (usually headers) to look at.

提交回复
热议问题