Maybe it’s from the recent VS Code update, It suddenly pops up..
it’s highlighting some of my non-error codes in a blue line and sometimes it translucent some of my variables that doesn’t have an error or what.
It’s kinda bothering me now they it looks, I tried searching in google youtube, but I’m at lost, mostly it’s for visual studio.
2
Answers
Try using the
omnisharp.enableRoslynAnalyzers
setting.If you want to disable warning/hint diagnostics, you might be able to do it with an editorconfig like this if you have editorconfig support enabled (source):
Or alternatively, if you want to just hide the squiggly underlines, see https://stackoverflow.com/a/74934214/11107541.
As of August 2023, we do have a bug in the 2.0.* line of the VS Code extensions where it’s showing a lot of blue squiggles when we didn’t expect it. We’re currently shipping a fix for it but right now so you’ll want to either roll back to the 1.* line or disable the analyzers for a few days.