2

I am writing a program in Microsoft Visual Studio using C++. Recently, I noticed that the auto complete functionality that it provides has stopped working (I think it's called intellisense or something?) So now, when I'm typing code, if I write something like: className. previously, once I had typed the . a little dialogue box would appear listing the functions and variables that were available in that class, but now this no longer happens, and Visual Studio no longer automcompletes the names of the variables that I'm typing...

Anyone know why this is? How can I get this automcompete feature working again? I've tried going to Tools --> Options --> Text Editor --> C/C++ and in the 'Statement Completion' section, the 'Auto list members' and 'Parameter information' checkboxes are both checked...

Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118

3 Answers3

1

To fix this, I needed to delete the .ncb file from the project folder when Visual Studio was closed.

Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118
0

Have you tried going to Tools->Import and export settings->Reset all settings

  • This could also happen if your intelliSense is buggered. However, do what @vivrichards said and also restart your visual studio to be sure. – ha9u63a7 Nov 06 '14 at 11:36
  • I don't kno if it makes a difference... but I am opening Visual Studio using a batch fie. However, I have always used this batch file to open it, and was using it when intelliSense was previously working... – Noble-Surfer Nov 06 '14 at 11:39
  • 1
    Have you looked at this thread [visual studio intellisense problem](http://stackoverflow.com/questions/10992983/intellisense-and-code-suggestion-not-working-in-vs2012-ultimate-rc) – viv richards Nov 06 '14 at 11:40
0

tldr: Try ctrl+alt+space and make sure you opened the .sln, not just a file or folder

Old question but I ended up here with this problem so I'm sure someone else eventually will too:

Adding to the other valid answers, this could be due to intellisense going into low impact mode, from accidentally hitting ctrl+alt+space(default). This deactivates autocompletes on many contexts, but not all (you should still be able to call functions directly from the current file if that is the source of your problem, but autocomplete after a period is disabled.

ex.: thisFunction() would autocomplete, but not myObject.thatMethod(), nor myObject.someAttribute. Ctrl+alt+space toggles that mode on and off, which can be removed in your keybinds since it's useless for most people.

Lastly, if you opened the folder containing the projet, and not the .snl, you're not going to get full autocomplete across the whole projet. You can tell by looking at your solution explorer, if you're stuck in folder view and not the fully detailed solution tree view

GabParrot
  • 41
  • 4