Intellisense in vs2010 with c++

后端 未结 12 1807
遇见更好的自我
遇见更好的自我 2021-01-13 13:38

I can\'t get intellisense to work. Even if I start with an empty project and add just one file to it with only an include for iostream and an int main()

相关标签:
12条回答
  • 2021-01-13 14:05

    Please find *.sdf file (Intellisence database cache) in project directory and delete it and relaunch project solution this will bring back your intellisence.

    0 讨论(0)
  • 2021-01-13 14:05

    There are a couple of threads about similar problems: click on Help at VS2010 and look for Intellisense.

    http://social.msdn.microsoft.com/Search/en-US?query=intellisense%20settings&refinement=123&beta=0&ac=1

    http://social.msdn.microsoft.com/Forums/en/vswpfdesigner/thread/75c4cc8d-9a81-4bda-84f0-f619f7493b3b

    stdafx.h should be added automatically when you create a New Project.

    From the file:
    // stdafx.h : include file for standard system include files,
    // or project specific include files that are used frequently, but
    // are changed infrequently
    
    0 讨论(0)
  • 2021-01-13 14:07

    I thought I should mention this:

    In Visual Studio 2012 I noticed that Intellisense suddenly stopped working in my C++ project (same error as the poster described). This happened because I had added "DEBUG" as a Preprocessor definition under Project Properties -> C/C++ -> Preprocessor.

    Once I removed it from that list and instead put it in the code ( #define DEBUG ) intellisense suddenly started working again.

    I don't know why this happens, I just know it screws up my intellisense. I hope this helps someone.

    0 讨论(0)
  • 2021-01-13 14:10

    I got it solved by the Microsoft team at http://connect.microsoft.com/VisualStudio/feedback/details/652838/intellisense-not-creating-ipch-folder

    It had to do with a certain Windows Update installed on WinXP. The solution was to install VS2010_SP1 and then a certain update over it.

    0 讨论(0)
  • 2021-01-13 14:10

    WIN32;_WINDOWS;_DEBUG;Append _DEBUG; remove Append _DEBUG;

    0 讨论(0)
  • 2021-01-13 14:11

    IntelliSense stores it's data in the SQL Server, which is installed during VS2010 setup. I recommend you check if the SQL Server Service is running.

    0 讨论(0)
提交回复
热议问题