c# - Visual Studio 2019 进入定义状态,Intellisense 不起作用

标签 c# intellisense visual-studio-2019 go-to-definition

我注意到 Visual Studio 2019 v16.0.1 的一个奇怪问题,关于“不需要使用指令”的 IntelliSense 通常缺少灰色,并且缺少 using 的类型引用建议不起作用。

我也尝试过 Visual Studio 2019 预览版,但没有成功。

我尝试了以下方法:

  • 删除 .vs 文件夹并重新启动。
  • 重装 Visual Studio
  • 通过工具下的导入和导出设置重置设置

  • 任何其他建议将不胜感激。

    最佳答案

  • 关闭 Visual Studio
  • 删除 .vs文件夹(它是包含解决方案 *.sln 的文件夹内的隐藏文件夹)
  • 启动 Visual Studio

  • 解决了我的问题
    更新来自评论

    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


    注意 1:我使用的是 Visual Studio 2019,但它可能适用于其他版本
    注意 2:这并没有解决 OP 问题,但它是解决您的问题的好选择

    关于c# - Visual Studio 2019 进入定义状态,Intellisense 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57474785/

    相关文章:

    visual-studio - Visual Studio 如何决定何时以及如何重建 IntelliSense?

    jenkins - Linux : Unable to find fallback package folder 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder'

    c# - 在 C# 中转义引用以供 javascript 使用

    c# - 类型加载异常 : Could not load type IHttpResponseStreamWriterFactory from assembly

    c# - C++/CLI MSIL 程序集中的指针数组

    jquery - Visual Studio 2015 jQuery 智能感知不工作

    sql-server - SQL Server Management Studio 中 JOIN 的智能感知

    json - 粘贴缺少的VS2019的特殊内容(JSON到类)-安装了所有Web开发工具

    c# - Visual Studio 在具有服务器 IP 的本地计算机上运行

    c# - 在 C# 中调用 C DLL 的问题