英文:
Why VS Code intellisence for Unity is not working in Ubuntu?
问题
I'm having a problem with intellisense on vs code for Unity on Ubuntu 22.04. I have a lot of extensions for vs code so that may be the problem.
I tried to open a file in Unity for vs code. Using external tools setting. It worked but I want to have intellisense too.
英文:
I'm having a problem with intellisense on vs code for Unity on Ubuntu 22.04. I have a lot of extensions for vs code so that may be the problem.
I tried to open a file in Unity for vs code. Using external tools setting. It worked but I want to have intellisense too.
答案1
得分: 0
通常情况下,这不应该依赖于您已安装的任何其他扩展。您能否查看以下检查清单,并确认一切都已正确设置?
VSCode Unity 3D工作智能感知检查清单:
- 在您的计算机上安装了Mono Framework和.net SDK
- 确保在Unity3D中,外部编辑器设置为“Visual Studio Code”,如果需要,按下重新生成项目文件
- 在VSCode中安装了C#扩展
- 在项目设置或全局设置中,确保
omnisharp.useModernNet
已禁用 - 检查您的VSCode设置中
omnisharp.monoPath
的mono
路径是否正确 - 打开解决方案时,请确保OmniSharp服务器正在运行
进一步调试
-
检查Visual Studio中OmniSharp/C#控制台的输出并查看错误消息。
-
在C#扩展的版本
v1.25.2
中存在一个问题,涉及到Mono路径。到目前为止,我在v1.25.0
中运行得很顺利。
希望这能帮助您找到您计算机上的问题。 😅
英文:
Normally this shouldn't depend on any other extension you have installed. Could you go through following checklist and confirm everything is setup correctly?
VSCode Unity 3D working IntelliSense checklist:
- Have the Mono Framework and .net SDK installed on your machine
- Make sure in Unity3D the external Editor is set to "Visual Studio Code" and press regenerated project files if nessacary
- Have the C# extensions installed in VSCode
- Either in the project settings or globally have
omnisharp.useModernNet
disabled - Check if the Path to
mono
is correct in your VSCode setting foromnisharp.monoPath
- Ensure the OmniSharp Server is running when you open up the Solution
Further debugging
-
Check the Output of your OmniSharp/C# Console in Visual Studio and check the error messages.
-
There is a bug in the C# extension in Version
v1.25.2
with Mono Path. I can work withv1.25.0
very fine so far.
I hope this helps you to find the issue on your machine. 😅
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论