How can I disable this new style of pop-up error messages in the "Visual Studio 2022" in code editor? Thank you.

Open Visual Studio, go to Tools->Options...->Text Editor->C#->Advanced and uncheck the Display diagnostics inline (experimental) option.
See attached screenshot:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With