VS doesn't auto complete a lot

So I just got a new computer, and installed Unity and Visual Studio and what not. When writing code, it will autocomplete sometimes, but most the time it doesn’t. It’s also making some words colored, but many other words it doesn’t color.
I’m watching Brackeys and tons of the stuff that’s colored or autocompletes for him doesn’t for me. For example, “LayerMask” stays white for me, and typing “Time” doesn’t autocomplete, and when I type “Time.d” it doesn’t show up “Time.deltaTime”.
I’m quite a noob, so I absolutely love the autocomplete feature, and on my old machine it did it all the time, so what do I need to do to make it autocomplete all the time again?
Thanks for the help!

First, close Visual Studio.

Then in Unity, navigate to:
Edit > Preferences > External Tools > External Script Editor.

Make sure Visual Studio is set as the editor, then click on “Generate all .csproj files”.

Launch Visual Studio again and it should be working now.

1 Like

Hello, i just had the same problem. Where do i find the “Edit” from “Edit > Preferences > External Tools > External Script Editor.”?

When you have Unity open, “edit” is at the top where you see “file”, “edit”, “assets”, etc.

I am also using “Microsoft Visual Studio” instead of “Visual Studio Code”. Does it matter?

Thanks so much! I must have originally done that like two years ago, while watching a YouTube video to get me started or something. No way I would have found it again, you’re a life saver thanks!

1 Like


I cant find it?

That’s because you’re not in Unity, you’re in the Unity Hub. You have to actually be in a project. Here’s a screenshot.

7059253--838405--screeny.jpg

OH. Im so noob, thanks!!

I got it working! Thank you both so much! Will be using these forums in the future for sure!