IntelliSense 未在 Visual Studio Code 中显示 System.Collections.Generic 的选项

问题描述 投票:0回答:1

我在 Visual Studio Code 中遇到

IntelliSense
的问题。尽管我的代码编译并运行正确,但我注意到
IntelliSense
没有显示
System.Collections.Generic
中类的选项。当我使用 using
System.Collections.Generic;
时,我希望看到
Dictionary
LinkedList
等类的建议,但相反,它显示来自其他命名空间的不相关选项。

IntelliSense
显示不属于
System.Collections.Generic
命名空间的建议。 正在建议其他名称空间,但不是预期的名称空间。

我做过的事:

我多次重新启动 Visual Studio Code。 我将 C# 扩展更新到最新版本。 我禁用并重新启用 C# 扩展。 我确保在我的环境变量中正确配置了 .NET SDK 路径。 重新启动我的电脑。

我用的是Win10。视觉代码 1.85.1

有人知道怎么解决吗?

c# visual-studio-code intellisense
1个回答
0
投票

案例更新:给以后可能需要的人,虽然在 VS Code 中运行不佳,但在 VS Community 中完美运行。

© www.soinside.com 2019 - 2024. All rights reserved.