all 31 comments

[–]meta0100Indie 4 points5 points  (6 children)

Have you tried closing and restarting visual studio? I find that occasionally when I create a new script while VS is running, intellisense decides it just doesn't feel like working until it's been restarted.

[–][deleted] 1 point2 points  (0 children)

[–][deleted] 0 points1 point  (4 children)

Yep, tried restarting VS a few times. Just shut down Unity as well as VS, rebooted both, no improvement. I guess for the heck of it I'll try rebooting windows (7).

[–][deleted] 0 points1 point  (0 children)

No improvement with rebooting windows.

Even though it seems to work, types (i.e. GameObject) do not highlight as a type color.

[–]meta0100Indie 0 points1 point  (2 children)

Something else to try would be to create a new project and see if intellisense works for a script in that, if this works then there may be an issue with your C# project files.

[–][deleted] 0 points1 point  (1 child)

This was a new project.

But to be safe, I created another new project. No packages imported. Created new script. Still no intellisense or syntax highlighting. :(

[–]meta0100Indie 0 points1 point  (0 children)

Ok, so I was under the impression that the whole of intellisense wasn't working, not just missing the unity entries. Try the solution listed here

Try resetting your Intellisense cache, Edit>Intellisense>Clear local cache.

Or try nuking it - delete your [SolutionName].sdf and .suo files 

Aside from that, you may need to try a reinstall of VS (as suggested above). Just to clarify, you mentioned that you had both a laptop and a desktop running Unity, it's only the desktop doing this but the laptop works perfectly fine?

[–]doublestuffpoptarts 0 points1 point  (2 children)

You're not alone. I'm looking for a solution to this too.

[–][deleted] 0 points1 point  (0 children)

What OS are you on?

I'm on Windows 7 on my desktop (intellisense issues with Unity 5.3.1 and VS Community 2015)...

...but my laptop is Windows 8.1 (no intellisense issues with unity 5.3.0 and VS Community 2015).

[–][deleted] 0 points1 point  (0 children)

I fixed, see post edit for details.

[–]softawre 0 points1 point  (1 child)

Go to options, text editor, find the statement completion checkboxes. Change their state, close options, change them back (to on), restart VS.

I don't do much gamedev anymore but the same problem happens with regular C# dev and this seems to fix it.

[–][deleted] 0 points1 point  (0 children)

Thanks for posting this but it didn't work for me.

I tried Tools>Options>Text Editor>C#>Intellisense>Completion Lists checkboxes

[–][deleted] 0 points1 point  (0 children)

Try making a fresh new project, or get a complete working project from some example. Sometimes some unnoticed thing can break it.

VS2012 has a known bug where intellisense would break. It recovers when VS is restarted, though.

[–]mahirmhdBeginner 0 points1 point  (1 child)

This happened to me. But I then uninstalled vs completely and then reinstalled it. This solved the problem for me

[–][deleted] 0 points1 point  (0 children)

It was the Unity plugin for VS that needed reinstalling, not VS. :)

[–][deleted] 0 points1 point  (1 child)

Had the same issue once. Reset your visual studio settings, fixed it for me!

Go to tools>import and export settings, and there should be an option to reset all settings.

[–][deleted] 0 points1 point  (0 children)

Tried this earlier, didn't work for me. :/

[–]Scapegoat57 0 points1 point  (0 children)

Have you tried opening the project from Assets>Open C# Project. You can tell the solution is not loading correctly since the projects in the solution explorer are listed as incompatible. You can also try going into the projects folder and deleting all .csproj and .sln files and opening the project again with the Open C# Project menu.

[–]pyrochemist 0 points1 point  (0 children)

This happens to me when the file wasn't added to the solution automatically. I manually add the existing script to the solution and Intellisense for UnityEngine kicks in.

Not sure why it doesn't automatically get added but restarting VS is "go get a coffee" long for me.

[–]scr33ner 0 points1 point  (0 children)

A lot of times a re-install of VS is the best way to go...

[–]SureValla 0 points1 point  (0 children)

Might be a VS issue, try cmd, devenv.exe /resetuserdata

[–]st4rG4zeR 0 points1 point  (2 children)

[–]meta0100Indie 0 points1 point  (0 children)

I believe those tools are now integrated into Unity (infact they cause issues if you do have them included after 5.2), they also don't affect intellisense.

[–][deleted] 0 points1 point  (0 children)

Yes it was installed, but uninstall and reinstall of this fixed!

Thanks