How to rebuild VS2010 IDE Intellisense?

前端 未结 6 1243
日久生厌
日久生厌 2020-12-17 21:11

some are working some are not working.

for example,

i did

using System.Web.Security;

MembershipUser myObject = Membership.GetUser();
              


        
相关标签:
6条回答
  • 2020-12-17 21:23

    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

    0 讨论(0)
  • 2020-12-17 21:28

    The solution that worked for me is to use the following at the command line (or Start->Run):

    devenv /resetuserdata

    0 讨论(0)
  • 2020-12-17 21:34

    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.

    0 讨论(0)
  • 2020-12-17 21:37

    If the cs file's build action is not set to compile, that will also cause the Intellisense to not work within that file.

    0 讨论(0)
  • 2020-12-17 21:38

    I'm using VS2005, but, I found that, in order convince it to build intellisense for boost, I had to specify the explicit path to the boost includes - shades of 1988! A relative path did not work. Dunno how this is going to affect the team, might try the environment variable trick to see if that's a workaround this poor indexing implementation.

    https://social.msdn.microsoft.com/forums/en-US/fa8277f9-ecf0-40a6-8e0e-118e4615d5bc/intellisense-and-nonstandard-directories

    0 讨论(0)
  • 2020-12-17 21:42

    I think the VS 2010 equivalent is Project>Rescan Solution – tletnes Jan 21 '13 at 22:50

    This is what worked for me.

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