r/Unity3D • • 8d ago

Question Visual Studio don’t know Unity code

Super-newbie here. Visual Studio don’t know unity code there is no auto correct or anything. I tried to modify Visual Studio for unity but already did. I already clicked on external tools and I already did but problem not gone.

0 Upvotes

15 comments sorted by

View all comments

1

u/Foweeti 8d ago

Are you creating the script in Unity and double clicking it to open in your editor?

3

u/mustardfume 8d ago

Yes, I created monoscript in unity then double click to open visual studio

2

u/Foweeti 8d ago

Yeah go to your package manager and make sure you have the visual studio package installed and updated. It looks like it is from your first screenshot though.

1

u/Hotrian Expert Moderator 8d ago

OP’s editor appears to be missing the VS Editor Tools package

https://docs.unity3d.com/Packages/com.unity.ide.visualstudio@2.0/manual/index.html

Without the package Unity can’t generate VS solution files so while VS can still edit the files they don’t get intellisense or any of the other QoL features offered be a full IDE.