David Burford
David Burford

Reputation: 791

Visual studio intellisense does not see new methods until restart?

I have a fairly large C# project with many files, classes etc. Everything works fine but if I move to say ClassA and add a new method or property and then move to another file in the solution and attempt to access it the intellisense reports it does not exist and underlines it in red. If I build the solution it will correctly build without errors and the red lines will disappear until I start editing the file again and then the red lines will come back and be reported as errors.

Saving the solution and all files does not help, but if I restart visual studio it will then work as intended unless I add more new methods/properties to an existing class then I have to restart again or suffer same problem.

I had this problem a long time ago with visual studio express and I could never fix it but it went away when I upgraded to a newer visual studio. Now the problem has come back with Visual Studio 2013 Ultimate on windows 8.1 and I can't find any solution again :(

Upvotes: 1

Views: 3585

Answers (1)

C Bauer
C Bauer

Reputation: 5103

Verify that your intellisense options are still properly configured.

Go to Tools => Options => Text Editor => C# => Intellisense.

Make sure that under "Completion Lists"

(checked) Show completion list after a character is typed

Make sure that under "Selection in completion list" you have:

Committed by typing the following characters: {}[]().,:;+-*/%&|^!~=<>?@#'"\

and

(checked) Committed by pressing the space bar

Upvotes: 2

Related Questions