简体   繁体   English

如何让 C# Dotnet Intellisense 在 Ubuntu 上使用 Visual Studio Code

[英]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.

相关问题 Visual Studio Code Intellisense 停止处理 C# 文件 - Visual Studio Code Intellisense stopped to work on C# files Visual Studio Code C# Intellisense 不工作 - Visual Studio Code C# Intellisense Not Working Visual Studio Intellisense,c#,没有背后的代码 - Visual Studio Intellisense, c#, no code behind 在Visual Studio C#中使用自定义DLL时,如何显示自定义的intellisense注释? - How do you get custom intellisense comments to appear when using a custom DLL in Visual Studio C#? Visual Studio C# - 如何关闭自动完成(不是智能感知)? - Visual Studio C# - How do I turn off autocomplete (not intellisense)? 如何使 Visual Studio 中 Unity 的 C# 代码看起来/像教程中那样工作(图片) - How do I make my C# code for Unity in Visual Studio look/work like in the tutorial (picture) 如何使用Visual Studio和C#Win Forms使Column AutoSize功能与ListView一起使用 - How do i get Column AutoSize functionality to work with ListView, using Visual Studio and C# Win Forms 如何让 Omnisharp 扩展在 Visual Studio Code 中工作 - how do I get the Omnisharp extension to work in Visual Studio Code 升级到v1.1.1后,Visual Studio Code C#IntelliSense不起作用 - Visual Studio Code C# IntelliSense doesn't work after upgrade to v1.1.1 Intellisense不适用于Visual Studio Code中的c#项目之一 - Intellisense doesn't work on one of c# projects in Visual Studio Code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM