gpt4 book ai didi

c# - Visual Studio Code IntelliSense 建议不会自动弹出

转载 作者:IT王子 更新时间:2023-10-29 04:23:53 28 4
gpt4 key购买 nike

我按照 https://code.visualstudio.com 中的安装说明进行操作,但是当我写 C# 代码时,IntelliSense 建议不会自动弹出,所以我必须使用快捷方式 Command+Space 来触发它,同时,建议只是来 self 编写的代码。

下面是屏幕截图:

enter image description here

我 checkin 了https://code.visualstudio.com/Docs/editingevolved , VSCode 确实支持 C# IntelliSense。

我觉得不是bug,可能是我安装VSCode的时候做错了。如何解决这个问题?

最佳答案

要在 .NET 项目上激活 IntelliSense:

  1. 打开项目文件夹:文件->打开文件夹...
  2. 点击左下角的火焰,选择您的项目click on the flame
  3. IntelliSense 已激活! IntelliSense is now activated!

据我所知,无法单独在 .cs 文件上激活 IntelliSense。(参见@natemcmaster 的回答)。

关于c# - Visual Studio Code IntelliSense 建议不会自动弹出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30616394/

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