Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rebuild VS2010 IDE Intellisense?

some are working some are not working.

for example,

i did

using System.Web.Security;

MembershipUser myObject = Membership.GetUser();
        string UserID = myObject.ProviderUserKey.ToString();
        Response.Write(UserID);

the membershipuser is not highlighted in green. and System.Web. is not listing objects

but the code is working fine though. How do I make the intellisense work fine?

like image 302
Vivek Chandraprakash Avatar asked Jan 28 '11 16:01

Vivek Chandraprakash


People also ask

How do you rebuild IntelliSense?

For Visual Studio 2017 (and I think Visual Studio 2019 also), close Visual Studio, go into the . vs folder in your projects folder and delete all the contents apart from the . suo file, then reopen Visual Studio. This way you can rebuild the Intellisense cache without losing your preferences.

How do I reset my IntelliSense database?

3 of the extension, there is a command to reset your IntelliSense database. Open the Command Palette (Ctrl+Shift+P) and choose the C/C++: Reset IntelliSense Database command.

How do I turn my IntelliSense back on?

How to Enable IntelliSense Feature in SSMS. Open SSMS, click Tools -> Options -> Expand Text Editor -> Expand Transact-SQL and click on IntelliSense as shown in the snippet below. Under Transact-SQL IntelliSense Settings ensure “Enable IntelliSense” checkbox is enabled.


2 Answers

I'm using VS2010 and Project > Rescan Solution seems to do the trick, although it seems to take longer than normal. I suppose it's because it is rebuilding the entire cache, rather than selectively updating parts of it.

If you're using VsVim or other non-default keybinds, alt+P+S still does the trick.

like image 113
TankorSmash Avatar answered Oct 31 '22 21:10

TankorSmash


Try resetting your Intellisense cache, Edit>Intellisense>Clear local cache.

Or try nuking it - delete your [SolutionName].sdf and .suo files

Edit:

VS 2010 equivalent is Project>Rescan Solution

like image 24
Dlongnecker Avatar answered Oct 31 '22 23:10

Dlongnecker