Unity/C# 自动完成功能在带有 .NET 版本 6.x 的 Linux 版 Visual Studio Code 中不起作用
我无法让 IntelliSense 自动完成,也无法在 Linux (Ubuntu 20.04) 的 Visual Studio Code 中显示 Unity (20.3.30 LTS) 方法的建议。我已经在我的 Ubuntu 上下载了 .NET 版本 6.0.102,但 Unity API 兼容性级别最高只有 4.x,随后在 Linux 上不再提供下载...有谁能解决这个问题,或者也许是关于还能做什么的建议(也许使用不同的 IDE)?
I can't get IntelliSense in to autocomplete or show suggestions for Unity (20.3.30 LTS) methods in Visual Studio Code in Linux (Ubuntu 20.04). I have downloaded .NET version 6.0.102 on my Ubuntu but the Unity API Compatibility Level only goes as high as 4.x, which is subsequently no longer available for download on Linux... Does anyone have a solution to this problem, or maybe a suggestion on what else to do (maybe use a different IDE)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终对我有用的是添加
Visual Studio Code 的 settings.json 文件。之后它仍然开始抱怨,结果我仍然需要安装 Mono。我通过
在终端中运行来做到这一点,然后重新启动omnisharp,一切都像魅力一样工作。
Something that worked for me in the end was to add
in the settings.json file of Visual Studio Code. It still started complaining after that and it turned out that I needed to install Mono still. I did that by running
in the terminal after which I restarted omnisharp and everything worked like a charm.