Visual studio 2019 go to definition and Intellisense not working

淺唱寂寞╮ 提交于 2020-06-16 05:58:25

问题


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.


回答1:


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




回答2:


I think these issues are discussed here and are resolved by an update and some worksrounds are bring discussed:

https://developercommunity.visualstudio.com/content/problem/505489/cannot-navigate-to-the-symbol-under-the-caret-3.html




回答3:


For anyone who are searching for another suggestion, I just go throught this issue, as OP said, I've deleted .vs folder, I've update vs to last version, I've uninstalled and reinstalled vs to the last version, I've reset settings, delete all obj folders, I've installed Microsoft.Net.Compilers but nothing worked, at the end I just remembered that sometimes the projects required WindowsBase library, until now I don't know why, but after adding that dll Intellisense started to function again.




回答4:


  1. Close Visual Studio
  2. Delete .vs folder
  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



来源:https://stackoverflow.com/questions/57474785/visual-studio-2019-go-to-definition-and-intellisense-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!