Visual studio 2019 go to definition and Intellisense not working

Priyanshu Maithani picture Priyanshu Maithani · Aug 13, 2019 · Viewed 36.2k times · Source

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 for missing using is not working.

I also tried with Visual Studio 2019 Preview but no luck.

I have tried the following:

  1. deleted .vs folder and restarted.
  2. Reinstalled Visual Studio
  3. Reset settings via import and export setting under tools

Any other suggestions will be appreciated.

Answer

Hakan Fıstık picture Hakan Fıstık · Jun 4, 2020
  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

Update From the comments

Deleting Browse.VC.db file within .vs folder worked for me.
I did this to avoid deleting .suo which has information I want to preserve

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