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
close visual stdio For mac in your folder: do command + shift+ . you will see hidden files -> delete .vs folder open solution again
I have tried almost all the solution mentioned above but it doesn't helped me. Trying to restart my PC solved my problem.
If you are facing this issue with Unity projects then,
This will restart Visual Studio with your project.
Go to Tools -> Options -> Text Editor -> All Languages -> General. Make sure “Auto List Members” is checked. Also, make sure “Parameter Information” is checked.
.vs
folder (it is a hidden folder inside the folder which contains the solution *.sln)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
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.