VSCode不向我显示一些建议例如:不建议Console.WriteLine,不建议Console.ReadLine

问题描述

在VSCode上,以前显示的建议类似于“ Console.ReadLine”或“ Console.WriteLine”,但现在不再显示。我不确定是否相关,但是最近我卸载了Visual Studio 2017和Visual Studio,因为我决定从现在开始只使用VS Code。

我尝试重新安装.NET Core SDK,然后重新安装了VS2019。起初,我在重新安装VS 2019时也没有得到建议。但是,在我安装了“ .NET Compiler Platform SDK”之后,它又开始显示,但是在VS Code上却没有显示

Me writing Console.w,expecting to get "WriteLine" as a suggestion but only "while" pops up

(注意:我是一个完整的新手)

解决方法

您想要的东西称为 intellisense ,又称智能代码完成。 您需要从Visual Studio Marketplace安装this。 还有使用手册。