Check Tools -> Options -> Text editor -> C#, Basic or other language -> Advanced -> Underline Errors in the editor.