5

I recently got a new computer but I chose to install VS2015 after reinstalling Unity. I previously used monodevelop but thought I'd give VS a go (partially because it became the default program when opening scripts through Unity and I can't seem to change that).

I am however having a few problems due to the intellisense/auto complete function not working. I've read through a lot of answers on here but nothing seems to help.

enter image description here

enter image description here

enter image description here

enter image description here

user3071284
  • 6,955
  • 6
  • 43
  • 57
Connarhea
  • 65
  • 1
  • 10

1 Answers1

3

My suggestion would be to rebuild your solution files.

From your projects root folder, copy Assets and Project Settings ONLY over to a new directory. From here open up one of your scenes, Unity will import assets and build the scene.

Once open, go to Edit -> Preferences -> External Tools and make sure that Visual Studio 2015 is selected as the External Script Editor and then go Assets -> Sync MonoDevelop Project (Ignore the name MonoDevelop!)

See if that works for you.

Failing that follow the guide here and note what version of Unity you are using as there are different steps for pre 5.2 Getting Started with Visual Studio Tools for Unity

And if that doesn't work, it's going to be a problem with your Visual Studio install. I've had this before even on a new install. So try a re-install as a last resort.

Rodders
  • 2,425
  • 2
  • 20
  • 34
  • 1
    The first part of your answer worked for me. This will save so much frustration – Connarhea Dec 05 '15 at 23:07
  • The same problem, but I'm not using Unity. A complete clean and rebuild of the solution worked for me. When I want a full clean, of every compiled artifact, I use this solution, https://stackoverflow.com/questions/755382/i-want-to-delete-all-bin-and-obj-folders-to-force-all-projects-to-rebuild-everyt#755433, which I have as a script file. I don't know whether it was essential to fixing this problem. I suspect not, but I need to mention it. – Stephen Hosking Jan 26 '18 at 01:39