visual studio not linking with unity project code example
Example: intellisense not working visual studio unity
In Unity Editor Go to Menu,
Click on Edit -> Preferences -> External Tools -> External Script Editor.
Set it to Visual Studio (your installed version of VS). ...
Check if it works, if not close Visual Studio.
Now Open cs file from Unity Editor, and now it should work.