Unity C# scripts when edited in Vs Code, do not offer auto completion

Viewed 98

Whenever I write code for my game in visual studio code, there is no autocompletion offer...

For example, in the picture below, "Transform" doesn't even exist.

I have already downloaded unity recommended extensions: Debugger for Unity, Unity Snippets, Unity Code Snippets, Unity Tools. And it didn't work even if I remove them.

Image

1 Answers

Go to Edit -> Preference -> ExternalTools

Preference

then chose your External Script editor enter image description here

then there you go

incase it's still not working, it's probably because your visual studio does not have the unity developer package, go to your visual studio installer, then modify and check the unity package thinggy.

or download the extension if u using visual studio code

Related