Intellisense not working

后端 未结 16 1829
滥情空心
滥情空心 2020-12-25 13:29

I am opening files from a server ASP.net and the VB codebehind files, and my visual studio is not working correctly, Intellisense is dead and if i right click the \"Go to

相关标签:
16条回答
  • 2020-12-25 14:22

    Exactly the same issue, though would appear only on certain projects (even within a single solution).

    Removing the *.*proj.user file (e.g. *.csproj.user) for the projects in question properly reset the missing features ("Go To Definition", "Organize Usings", Intellisense on certain types, etc).

    In our case, I suspect this happens sometimes when we switch branches with an SCM that uses a single working directory (like git). If setup properly, it wouldn't track *.user* files but that means that if there are incompatible changes in it across different branches, you need to regenerate it.

    So of course the "sometimes" would depend on the current branch and the next branch.

    Unfortunately I don't see a very good solution if that's the case. Sometimes you really want to keep the user settings across branches if they're compatible, sometimes you want to regenerate them unconditionally. Ideally, you might even want to only change parts of them when switching, while keeping other parts.

    If you never need to keep them and are fine with regenerating them every time, then you can configure your SCM to always remove these files while switching branches (e.g. using hooks for git). This is a pretty naive solution however, doing it more universally correctly would require a smarter system (aware of the semantics behind the .user files and capable of capturing/prompting user intent when needed).

    0 讨论(0)
  • 2020-12-25 14:25

    I should first note that upgrading my RAM from 4 to 16GB seems to have made this issue go away.

    Here's the steps I go through:

    If only one file/window appears to be affected, close/reopen that file. If that doesn't work, try below.

    In Visual Studio:

    1. Click Tools->Options->Text Editor->All Languages->General
    2. Uncheck "Auto list members"
    3. Uncheck "Parameter information"
    4. Check "Auto list members" (yes, the one you just unchecked)
    5. Check "Parameter information" (again, the one you just unchecked)
    6. Click OK

    If this doesn't work, here's a few more steps to try:

    1. Close all VS documents and reopen
    2. If still not working, close/reopen solution
    3. If still not working, restart VS.

    For C++ projects:
    MSDN has a few things to try: MSDN suggestions

    The corrupt .ncb file seems a likely culprit.

    From MSDN:

    1. Close the solution.
    2. Delete the .ncb file.
    3. Reopen the solution. (This creates a new .ncb file.)
    0 讨论(0)
  • 2020-12-25 14:25

    save, close and reopen the source file you are working on. This works every time for me.

    0 讨论(0)
  • 2020-12-25 14:25

    This is the problem related to Microsoft MSDN , your MSDN might be getting some problem. The solutions to this is uninstall MSDN and then re-install . before going for this make sure that you system is free from virus attack. Hope that after doing , the Microsoft Intellisense will start running

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