如何使用Unity和Linux在VSCODE上配置IntelliSense?
我最近切换到Linux,并且在Unity和Vscode方面存在问题。 当我打开任何脚本时,Monobehaviour
之类的类不存在... 我发现您应该更改OmnishArp:使用全局单声道
始终,但是该选项不存在。 (我已经安装了C#扩展名和单声道)
I recently switched to Linux and I have problems with Unity and VSCode.
When I open any of my scripts, classes like MonoBehaviour
don't exist...
I found that you should change Omnisharp: Use Global Mono
to always, but that option doesn't exist. (I have C# extension and mono installed)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何有这个问题的人:
假设其他所有内容都是最新的,则将
更改为
始终确实可以使用。您必须恢复为C#扩展的较旧版本才能在设置中查看该选项。 1.24.4对我有用。您可以通过转到“扩展名”选项卡,然后单击C#扩展程序旁边的齿轮图标,然后选择安装另一个版本...
在此处找到解决方案: https://forum.unity.com/threads /solved-unity-with-vs-code-andintellisense-on-linux-mint.986088/
For anyone who has this issue:
Assuming everything else is up to date, changing
Use Global Mono
toalways
does work. You have to revert to an older version of the C# extension to see the option in settings. 1.24.4 works for me. You can do this by going to the extensions tab, and clicking the gear icon next to the C# extension, and choosingInstall Another Version...
Found the solution here: https://forum.unity.com/threads/solved-unity-with-vs-code-and-intellisense-on-linux-mint.986088/