Visual studio 2019 go to definition and Intellisense not working

前端 未结 10 1278
余生分开走
余生分开走 2021-01-18 06:21

I have noticed a weird issue with Visual Studio 2019 v16.0.1 the IntelliSense about \"Using directive is unnecessary\" normally grey is missing and type reference suggestion

相关标签:
10条回答
  • 2021-01-18 06:37

    close visual stdio For mac in your folder: do command + shift+ . you will see hidden files -> delete .vs folder open solution again

    0 讨论(0)
  • 2021-01-18 06:42

    I have tried almost all the solution mentioned above but it doesn't helped me. Trying to restart my PC solved my problem.

    0 讨论(0)
  • 2021-01-18 06:44

    If you are facing this issue with Unity projects then,

    1. Check in your Unity settings whether it has Visual Studio configured as the external editor.
    2. Click on Regenarate project files in the Unity settings.
    3. Go to Assets => Open C# project.

    unity settings help

    This will restart Visual Studio with your project.

    0 讨论(0)
  • 2021-01-18 06:48

    Go to Tools -> Options -> Text Editor -> All Languages -> General. Make sure “Auto List Members” is checked. Also, make sure “Parameter Information” is checked.

    0 讨论(0)
  • 2021-01-18 06:50
    1. Close Visual Studio
    2. Delete .vs folder (it is a hidden folder inside the folder which contains the solution *.sln)
    3. Start Visual Studio

    Solved my problem

    NOTE 1: I am using Visual Studio 2019, but it may work on other versions
    NOTE 2: This did not solve the OP problem, but it is a good candidate to solve your

    0 讨论(0)
  • 2021-01-18 06:52

    First time I use VS 2019, I need to manually install Code Analysis. Make sure it is installed at your project properties.

    And today, for the new class, the suggestion or namespaces not showing for VS 2019 Intellisense, and Go to Definition not working too.

    I must do close solution, and re-open and VS 2019 doing scanning while opening project, and then worked again.

    I think this is bug for VS 2019. Try to close solution and re-open it.

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