如何让 Visual Studio 推荐统一代码 [英] How to get Visual Studio to recommend unity codes

查看:39
本文介绍了如何让 Visual Studio 推荐统一代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在学习 C# 和 Unity,但我遇到的一个问题是在 Visual Studio 上编写 C# 脚本时,VS 似乎总是推荐对 Unity 没有用的脚本.

I've been learning C# and Unity, but one problem I have is when writing the C# script on Visual Studio, VS seem to always recommend scripts not useful for Unity.

例如,当我输入 Vector3 时,它会推荐 BitVector32.你不能忽略它们,就好像我只是继续打字一样,它会一直强制执行这些建议,最终我的脚本中到处都是错误

An example is when I type in Vector3, it'll recommend BitVector32. You can't ignore them as if I just continue typing, it'll force these suggestion all the time, I end up with mistakes all over my script

有人知道如何解决这个问题,或者我如何确保 VS 为 Unity 推荐有用的代码?

Anyone know how to fix this, or how can I make sure that VS recommends useful code for Unity instead?

推荐答案

在 unity 中,请确保脚本文件的默认编辑器是 VS,而不仅仅是您的默认程序,它很可能是 VS.您可以在编辑 > 首选项 > 内存中的外部工具下找到此选项,而不是在我的电脑上仔细检查.

In unity, make sure the default editor for script files is VS and not just your default program which is most likely VS anyway. You can find this option under edit > preferences > external tools from memory, not at my pc to double check.

出于某种原因,除非设置了此选项,否则 unity 不会完全绑定到 VS.

For some reason unity doesn't fully bind to VS unless this option is set.

这篇关于如何让 Visual Studio 推荐统一代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆