Visual Studio C# IntelliSense not automatically displaying

前端 未结 17 1491
一整个雨季
一整个雨季 2020-11-30 03:23

Just recently, my Visual Studio 2010 stopped displaying IntelliSense suggestions automatically while I am typing. I can still press ctrl+space to get it to work, but it doe

相关标签:
17条回答
  • 2020-11-30 04:22

    This may be due to the solution configuration changed to Release Mode instead of debug. Right click on solution -> Properties -> Configuration Properties -> Set Configuration To Debug if it is in Release.

    0 讨论(0)
  • 2020-11-30 04:23

    Steps to fix are:

          Tools
          Import and Export Settings
          Reset all settings
          Back up your config
          Select your environment settings and finish
    
    0 讨论(0)
  • 2020-11-30 04:23

    I also faced the same issue but in VS2013.

    I did the below way to fix, It was worked fine.

    1. Close all the opened Visual studio instance.

    2. Then, go to "Developer command prompt" from visual studio tools,

    3. Type it as devenv.exe /resetuserdata

    4. Restart the machine, Open the Visual studio then It will ask you to choose the development settings from initial onwards, thereafter open any solution/project. You'll be amazed.

    Hope, it might helps you :)

    0 讨论(0)
  • 2020-11-30 04:23

    A new cause for this in the .net core era is having a project loaded for an unsupported .net core version. For instance if you loaded a project from GitHub that was set to use:

      <PropertyGroup>
        <TargetFramework>netcoreapp2.2</TargetFramework>
        <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
      </PropertyGroup>
    

    But you only have 2.1 installed or find yourself using Visual Studio 2017 then the compiler wont be able to find the SDK code and thus provide intellisense.

    The solution in that case might be to right click on your project and select Edit MyProject.csproj from the context menu and change the target framework as necessary:

      <PropertyGroup>
        <TargetFramework>netcoreapp2.1</TargetFramework>
        <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
      </PropertyGroup>
    

    This assumes whatever project you loaded can actually be run under a lesser target framework.

    0 讨论(0)
  • 2020-11-30 04:24

    I hit this today after the following sequence:

    1. Added a new class to my project.
    2. Closed Visual Studio, but accidentally selected No when it asked if I wanted to save changes.
    3. Reopened Visual Studio, and found that it reopened the new file automatically but without my previous changes (as expected). However, IntelliSense was no longer working in the new file.

    The problem was in addition to not saving changes to the new file, it didn't save changes to the project, so after reopening Visual Studio the file was not part of the project. The Show All Files command in Solution Explorer, or Add → Existing Item..., resolved the problem.

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