strkiky2
strkiky2

Reputation: 79

How to get Visual Studio to recommend unity codes

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.

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

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

Upvotes: 0

Views: 2136

Answers (2)

Zami
Zami

Reputation: 113

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.

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

Upvotes: 1

vasmos
vasmos

Reputation: 2586

You can press ctrl + alt + spacebar to turn off auto complete and it will just suggest or go to settings -> intellisense -> toggle completion mode.

https://learn.microsoft.com/en-ca/archive/blogs/zainnab/intellisense-suggestion-mode

Im not sure why it is suggesting Bitvector32 , did you import

using System.Collections.Specialized;

somewhere in your code? You may have this and other imports in your namespace you do not actually need which are prompting unneeded suggestions

Upvotes: 0

Related Questions