c# - 升级到 v1.1.1 后,Visual Studio Code C# IntelliSense 不起作用

标签 c# unity3d intellisense visual-studio-code omnisharp

我正在使用 Visual Studio Code 作为 Unity 5 的代码编辑器。

Visual Studio Code 自行更新,之后我发现我的 C# IntelliSense 似乎坏了。它不显示对我的类(class)的建议,它只显示 c# 语法建议。我已经检查了所有设置和日志,所以一切似乎都是正确的。有正确的工作区设置,OmniSharp 正在运行,日志中没有错误。我试过卸载/安装 VSCode 但没有成功。我不明白问题出在哪里,我需要你的帮助。

有什么解决办法吗?屏幕截图如下。

enter image description here

enter image description here

最佳答案

这可能与 C# Omnisharp 插件有关。

Support for .csproj projects has been temporarily disabled on OS X and Linux. This will impact anyone doing .csproj development on OS X or Linux (e.g. Unity, Xamarin, etc.). Rest assured that this will be restored in the near future. However, for now, you can use the Legacy C# Support extension.

https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp

关于c# - 升级到 v1.1.1 后,Visual Studio Code C# IntelliSense 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37341505/

相关文章:

unity3d - 统一: SpeechLib works fine in editor but not in runtime

c# - 为什么不能同时使用 2 个 NetworkManager?

c# - 将项目添加到 Canvas Unity C#

c# - Visual Studio 2019 进入定义状态,Intellisense 不起作用

jquery - 编译时出现 JScript IntelliSense 错误 "Object expected @ 0:0"是什么意思?

C# - 分部分加载 XML 文件

javascript - C# WebMethod - 发送和接收相同的自定义对象作为参数

python - 为什么适用于 Python 的 VS Code IntelliSense 建议不对所有相同类型的变量自动完成?

c# - dotnet new 的多项目模板

c# - C# 中具有两个泛型参数的泛型方法