[英]Visual studio not giving Hints (intellisense) when i opening the c# scripts through unity,
[英]Visual Studio intellisense/autocorrect works for C# terms, but not for Unity
当我在 Visual Studio 中编写代码时,它通常会突出显示并建议诸如string
、 void
、方法名称等提示。
但是,它不适用于 Unity 术语,例如Vector3
或Time
。 我尝试更新两者并更改外部工具设置,但它似乎不起作用。
我错过了什么? 提前致谢。
您可以尝试以下步骤:
步骤 1:关闭 Visual Studio
第 2 步:在 Unity 中,go 编辑 < 首选项 < 外部工具(窗口左侧)
第 3 步:在外部工具 go 中显示外部脚本编辑器的部分(这应该在您使用的任何 Visual Studio 编辑器上(对我来说,它默认为“通过文件扩展名打开”
第 4 步:确保选中 Generate all csproj files,并选中 Editor Attaching
第 5 步:打开您之前尝试打开的 C# 脚本
(来源: https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.