r/Unity3D•
SwillyDo

Visual Studio intellisense stops working for any script in an editor folder

Question

Has anyone seen this before? Visual Studio loses all Unity-specific intellisense for scripts in an editor folder, but works just fine for everything else. If I close the editor script in Visual Studio, move it out of the editor folder, and then reopen the script, intellisense is working perfectly again.

The editor folders are not showing up in the VS Unity explorer window. Googling shows up nothing for this bug (?) as far as I can see. Any ideas?

EDIT: I worked out a temporary fix. If you go to Project > Show All Files then the Solution Explorer will show all folders, including the Editor folders that it was mysteriously ignoring. Then you can right click on the missing folders and choose "Include In Project" and it will process the files normally. However, I have to repeat this process every time I relaunch Visual Studio. Would love if anyone had any idea how to make it permanent.

EDIT: Update UIElements Schema from the context menu in Unity fixed it permanently???

EDIT: For posterity's sake: the above fix was not actually a fix it seems. I am back to having to manually re-add the Editor folders each time I launch the project.

Posted Aug 6, 2019, 9:41 PM UTC · edited

11
[deleted]•

[deleted]

1
SwillyDoOP•

Check out my edits. It is some mysterious right-click menu option in Unity called Update UIElements Schema. I have no idea if I managed to hit it once accidentally to cause the problem, but it fixed the problem.

1