[英]How do I get C# Dotnet Intellisense to work on Visual Studio Code on Ubuntu
I'm learning to use Unity under Ubuntu 20.04我正在学习在 Ubuntu 20.04 下使用 Unity
Following the coding tutorials, I have downloaded Visual Studio Code and Dotnet for Ubuntu (version 6.0.300)按照编码教程,我下载了适用于 Ubuntu 的 Visual Studio Code 和 Dotnet(版本 6.0.300)
The code I write works (if I get it correct) but despite installing and enabling the Extension for C# and Ominsharp displaying no errors, I get no Intellisense, no error checking and no code hints at all when developing - so Visual Studio Code is currently nothing but a glorified Notepad app.我编写的代码有效(如果我得到正确的话),但是尽管安装并启用了 C# 和 Ominsharp 扩展没有显示任何错误,但在开发时我没有得到 Intellisense、没有错误检查和代码提示 - 所以 Visual Studio Code 当前是只不过是一个美化的记事本应用程序。
I read that Omnisharp would only work up to Dotnet 6.0.100 but I have found no path to downgrade from 6.0.300 to 6.0.100 - in fact, I found no download for 6.0.100 at all我读到 Omnisharp 只能在 Dotnet 6.0.100 上运行,但我没有找到从 6.0.300 降级到 6.0.100 的途径——事实上,我根本找不到 6.0.100 的下载
How do I get things working correctly?我怎样才能让事情正常工作?
Thanks谢谢
对我来说,诀窍是在 VS Code 中启用 Roslyn 分析器并将“使用全局单声道”设置为始终。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.