Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio 2019 go to definition and Intellisense not working

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.

like image 966
Priyanshu Maithani Avatar asked Aug 13 '19 09:08

Priyanshu Maithani


People also ask

Why is my IntelliSense not working Visual Studio 2019?

Troubleshooting# If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve the issue. If you are still missing IntelliSense features after installing a language extension, open an issue in the repository of the language extension.

How can I get IntelliSense in Visual Studio 2019?

Note: We have several Preview features which are off by default and can be enabled through the Tools > Options > IntelliCode page.

Why is definition disabled in Visual Studio?

Answers. Don't close Visual Studio but close all the files and open them again by clicking on the file in the solution. The file might have been opened by Source Safe or you maybe opened it from Windows Explorer. In this case the file doesn't get assosiated with your solution and the Go to Def.


1 Answers

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.

like image 91
sagar Avatar answered Sep 27 '22 19:09

sagar