Disable 'Show live semantic errors' for C # in Visual Studio 2017

In Visual Studio 2013, I could disable the option "Show live semantic errors" under "Tools β†’ Options β†’ Text Editor β†’ C # β†’ Advanced.

This functionality is painfully distracting, and I would like to disable it. Unfortunately, these options were removed back in Visual Studio 2015 and still haven't returned to Visual Studio 2017.

Is there any way to disable this option for 2017? I searched everywhere what I can think of ... Does anyone have any ideas?

Behavior that I find distracting / frustrating / etc. It is a constant visual notification that something is wrong with my code. In particular, when I write something ...

As a simple example:

/// <summary> /// /// </summary> public class MyClass { public string DoSomething() { } } 

"DoSomething" will be identified (via a red squiggly string) as not returning a value. If I am in the process of writing my method, I do not want to remind you that this is wrong. This example, although fairly simple, illustrates the problem. Real-time lighting can be really distracting as things get complicated. I know that many have suggested making the squiggle color the same as the background color. The problem is that as soon as I compile, I would like to see these screams ...

I disabled all analyzes at the solution level and project level.

+7
c # visual-studio visual-studio-2017
source share
2 answers

You are not the only one who asks for this option ... You can look here for confirmation

But according to one of the comments visible on this link, you can still disable the full analysis of the solution:

IMHO, the new checkbox in VS2015 Update 3, which allows you to switch off / on the β€œEnable full analysis of solutions” option, is a step in the right direction ( https://msdn.microsoft.com/en-US/library/mt709421(VS.140 ) .aspx ) - but it still does not allow to eliminate ALL analysis of solutions.

0
source share

This is currently not possible. You can request to return this function and present your argument in How to disable compilation / analysis of live code in Visual Studio 2017? Roslyn question about GitHub.

In Visual Studio there is no corresponding parameter. You cannot change the smoothing style (wavy line) because Visual Studio uses the same style called Syntax Error for both design-time errors and compile-time errors. Roslyn, which comes with Visual Studio, ignores the corresponding registry keys. See Performance Recommendations for Large Solutions in the Roslyn GitHub Wiki. Although the language service and editor have corresponding extension points, they will not allow you to change the default behavior in Visual Studio. See Editor and Language Services Page Extensions on MSDN.

0
source share

All Articles