Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling red squiggly lines in visual studio 2015 C#

I'm using visual studio 2015 as my script editor for unity and I'd like to get rid of the syntax error underlining because they irritate me a lot, but I can't find the option to do that in visual studio. Can the syntax underlining be disabled for C#?

I've searched for answers but I couldn't find an answer that worked for me, The solution should apparently be to go to Options>Text Editor>C#>Advanced and change some settings there, but none of the options I have seem to remove the squiggly lines.

Here's my option menu: http://i.imgur.com/gD8JsLF.png

like image 493
Xcorpius Avatar asked Jun 03 '16 15:06

Xcorpius


2 Answers

You might try changing the color of the squiggly lines by going to tools -> options -> environment -> fonts and colors -> syntax error and setting the color to one that doesn't irritate you. Like white.

like image 184
Martin Avatar answered Oct 01 '22 08:10

Martin


I had the same question for Visual studio 2019 (and maybe other versions), as I also needed this for talking screenshots with non-compiling code, so here is the settings (took me a while to find!), for what it's worth:

enter image description here

like image 43
Simon Mourier Avatar answered Oct 01 '22 07:10

Simon Mourier