Reputation: 84
I recently installed unity ,but I didn't install visual studio with it because I already have installed. I simply opened unity and I goes to Edit > Preferences > External script editor and I selected Visual studio code . But when I opening my scripts, visual studio not giving hints for my c# code.
Upvotes: 0
Views: 1010
Reputation: 44
You need to install snippets for Unity in VS code. Open VS code. Go to Extensions(ctrl+shift+X). In search field you need to write unity Then click to Unity Code Snippets and install it in window bellow. Then you will be able to see Intelesence !
Upvotes: 0
Reputation: 3
What you could do is just open it and close it.
What i mean by that is go to Assets > Open C# Project
Once VSCode opened, wait for 1 min, try to write something like Rigidbody. If intellisense is working it will start giving you hints, if it's still not working
Do the process one more time,
You can refer to these pictures where how VSCode tells you whether Intellisense is working or not. https://i.sstatic.net/FJ6uL.jpg
Upvotes: 0
Reputation: 856
You probably need to install the appropriate targeting pack for Unity. That article also has some other helpful extensions to install when developing in Unity.
Upvotes: 0