I am working on my project in Unity. I create a new script and open it with Visual Studio to edit my script. At first, everything works fine. Codes like ‘using System;’ appear in color, and Visual Studio functions as expected. However, after 20 to 30 minutes, codes like ‘using System;’ lose their color. Visual Studio also stops helping me while writing code.
For example: When typing Debug.Log(“”);, normally when you type ‘Debug.’, the first suggestion would be ‘Log’. Visual Studio does this when I first open it, but after some time, it no longer shows me the available suggestions.
The code I write works fine. When I run it in Unity, it works without any problems. But as someone new to game development, it becomes difficult when the IDE doesn’t assist me while coding. Normally, if you write a code incorrectly, a red line appears underneath, indicating there’s an error. However, when this issue occurs, even if I write the code incorrectly, there’s no line underneath, and I only notice the error when I return to the Unity editor.
I think this is a bug. Can anyone who knows the solution help?