9

I am programming in C#, using Visual Studio Code. It insists on checking for syntax errors (red squiggles) while I'm typing, instead of just on save. This results in lots of "errors" that wouldn't be there if only it would wait until I'm done typing. I did Google search but found no solution, only other people, a lot of them, complaining at the same issue.

Is there any way to disable error checking while I am typing, or is it something I have to live with.

The suggestions like adding lines in settings.json like "java.validate.enable": false "javascript.validate.enable": false "problems.decorations.enabled": false

do not work for C#.

jonschlinkert
  • 10,872
  • 4
  • 43
  • 50
Bob Ueland
  • 1,804
  • 1
  • 15
  • 24
  • Does this answer your question? [How to disable error highlighting in VS Code?](https://stackoverflow.com/questions/46061857/how-to-disable-error-highlighting-in-vs-code) – Mitch Wheat Nov 15 '20 at 05:08
  • @Mitch, thanks but the suggestions in that post did not work for me, since I am using C#. I've seen that post before and tried the different suggestions but none of them worked for me. They might work for Java or JavaScript, but not for C#. – Bob Ueland Nov 15 '20 at 05:16
  • Do you have a C# linter that is running `onType` - maybe you have already looked for this? – Mark Nov 15 '20 at 05:24
  • I suppose the real question is "why wouldn't you want interactive error checking?" – Mitch Wheat Nov 15 '20 at 05:58
  • 9
    @Mitch, I do want error checking, but not while I type. Why should I have red squiggles all over the place, while I am typing perfectly legal code. An analogy. Let say I am writing a letter and I want to write Greetings. I start with G, and somebody behind my back is saying to me "G"is not a word. I continue with r and the person behind me is saying, "Gr" is not a word either. And it continues this way until I have written the whole word Greetings until he finally shuts up. That is not a fun way to write a letter. Not for me anyway. – Bob Ueland Nov 15 '20 at 07:09
  • @Mark, the only extension I have in Visual Studio is "C# for Visual Studio Code (powered by OmniSharp)". I suspect that this is the one checking for syntax errors. Is that what you mean by C# linter? And I do not understand what you are referring to when you say "onType". What is that? – Bob Ueland Nov 15 '20 at 07:14
  • This issue was asked years ago but still bothering in VS2022. – Ursidae Dec 29 '22 at 03:06

0 Answers0