When I create a C# script in Unity, no matter what I type there, it won't show any errors. (and if you know please show me what means that yellow line next to the numbers of lines and how to turn it off).
Example:
It actually looks like VS doesn't recognize it as an error. The only time I get errors is when I check my unity project: this is error from unity I want to clarify that this error is not important. It's just to show how it works (won't show error in VS but in unity i does). Here is error from this screenshot:
Assets\NewBehaviourScript.cs(19,24): error CS1002: ; expected -----
But it's obvious because there is a lot of nonsence since I was testing the error highlighting). This is from VS