'How do I remove these annoying error labels?

VS 2022

enter image description here

How do I get rid of these annoying error popups while I'm typing? They even appear over the text I'm currently typing sometimes.

I'm not exactly sure when it started, I may have accidentally turned on an option by mistake, but I don't remember which option controls this.



Solution 1:[1]

Tools > Options > Text Editor > C# (for example) > Advanced > Display diagnostics inline (uncheck)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wa.