Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable instant syntax error highlighting in Visual Studio 2015

I got Visual Studio 2015 Professional several months ago. One thing that has irked me ever since is how the syntax error checking fires off immediately after typing, whereas in 2013 the error checks only happened after you have moved away from your current line of code.

This is kind of difficult to explain what I mean. Essentially, if I type a quotation mark every single bit of code below that point immediately switches to string and everything highlights as errors. Halfway through creating a variable, Visual Studio is highlighting it saying it is an unused variable.

Is there a way to turn this feature off? I have been poring over every options menu I can find, disabling options one by one and I cannot find a solution. I have also googled ad nauseum and searched for a solution but it is either difficult to search for or nobody else minds. I find this feature highly annoying because the editor is screaming at me before I have even progressed halfway through a line of code.

Any help would be greatly appreciated

like image 302
Chris Avatar asked Mar 01 '16 01:03

Chris


People also ask

How do I fix Visual Studio error codes?

Use Quick Actions to fix or refactor code Or, when your cursor is on the line with the colored squiggle, press Ctrl+. or select the light bulb, error light bulb, or screwdriver icon in the margin. You'll see a list of possible fixes or refactorings you can apply to that line of code.

What is enable highlighting error in VS code?

Before that make sure that you're in a C++ file. Then, go to the command palette (Ctrl + Shift + P) and search for "error." Click on the "Enable Error Squiggles" option. That's it.

How do you fix syntax errors in programming?

How to Fix It: If a syntax error appears, check to make sure that the parentheses are matched up correctly. If one end is missing or lined up incorrectly, then type in the correction and check to make sure that the code can be compiled. Keeping the code as organized as possible also helps.

How do I find the error list in Visual Studio?

To display the Error List, choose View > Error List, or press Ctrl+\+E.


1 Answers

Ok, maybe this link can help you.

https://blogs.msdn.microsoft.com/zainnab/2010/05/01/how-to-turn-off-automatic-intellisense/

Also You can change colors for that error highlights (cheat your mind), look for the error color and choose one equal to the back color of the editor.

https://msdn.microsoft.com/en-us/library/hh923906.aspx

I hope this can help you

like image 179
Mario Avatar answered Nov 15 '22 06:11

Mario