[英]How do i get code completion for C# scripts in VSCode for Unity on Linux/Ubuntu?
I recently came back to unity, as i found out that it does now support installation linux.我最近回到了统一,因为我发现它现在确实支持安装 linux。 It works, but when editing the scripts with vscode i do not get code completion.它可以工作,但是在使用 vscode 编辑脚本时,我没有完成代码。
I have installed the C# extension, the Debugger for unity extension and the Unity Code Snippets extension.我已经安装了 C# 扩展、用于统一扩展的调试器和统一代码片段扩展。
I know that there is the Visual Studio IntelliCode extension, but this does only support Java, Python js and ts.我知道有 Visual Studio IntelliCode 扩展,但这只支持 Java、Python js 和 ts。 I also know that there are IDEs that i can use, like Rider, but i would like to setup this in a lightweight environment without an IDE.我也知道我可以使用一些 IDE,比如 Rider,但我想在没有 IDE 的轻量级环境中设置它。
So, how do i setup code completion in vscode for unity-scripts on linux?那么,如何在 vscode 中为 linux 上的统一脚本设置代码完成?
Have you tried this guide你试过这个指南吗
n project preferences -> external tools you can tell Unity what program to use for editing c# scripts. n 项目首选项 -> 外部工具,您可以告诉 Unity 使用什么程序来编辑 c# 脚本。 If you have the Visual Studio Editor packages in your project, you should see a special “Visual Studio Code” option in your preferences.如果您的项目中有 Visual Studio Editor 包,您应该会在您的首选项中看到一个特殊的“Visual Studio Code”选项。 The packages are part of the standard Unity download now.这些包现在是标准 Unity 下载的一部分。
Most people forget step 3大多数人忘记了第 3 步
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.