Console reports a sytax error, but visual studio does not report it.

Hello, I hope this is the correct area for this thread. I did not know if this is an issue on my end, visual studio, or Unity, so I was hoping someone could help me figure that out.

I wrote a simple script that creates some basic movement. I developed it in iterations and know that Unity accepted the code prior to my latest edit (I added lines 11 and 36 when it broke Unity).

At the bottom of my screenshot the Unity console returns a syntax error that states that I am missing a comma. However, visual studio does not indicate an issue and I could not manually locate this missing comma.

Am I an idiot and am missing it, or is there an issue with unity/visual studio?

Also, just a quick question, how do I get visual studio to display color-coding, such as key words? It seems that some are colored, but many are just white text. I have also deliberately made errors and cannot appear to get the squiggly lines to display. I never had this issue before until I began to run Visual Studio though Unity. Would anyone happen to know a fix for this?

Your Visual Studio is not configured properly for working with Unity (The biggest clue is that it says “Miscellaneous Files” instead of “Assembly-CSharp”) and that is the source of pretty much all the issues you are describing. Follow all of the steps here to get it working right: Install & configure Visual Studio Tools for Unity | Microsoft Learn

BTW as for your actual error - You used == on line 11 where you should have just used =.