gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 16:30:12 29 4
gpt4 key购买 nike

我注意到 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/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com