Share via

C++ errors

Sid Kraft 46 Reputation points
2026-05-25T13:59:32.98+00:00

Using Visual Studio, C++, is there a way to turn off the error reporting that is generated by "co-pilot", very irritating as every statement that is issued automatically generates suggested error or fixes while entering! "clutters up" the viewing window?

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.


2 answers

Sort by: Most helpful
  1. Jack Dang (WICLOUD CORPORATION) 18,640 Reputation points Microsoft External Staff Moderator
    2026-05-26T03:17:49.9266667+00:00

    Hi @Sid Kraft ,

    Thanks for reaching out.

    In many cases, the messages that appear while typing in C++ are coming from IntelliSense or the C++ linter rather than Copilot itself.

    Please try going to Tools > Options, then open Text Editor > C/C++ > IntelliSense. Under the Errors section, you can turn off options such as showing IntelliSense errors in the editor, showing them in the Error List window, and suggesting fixes for IntelliSense errors.

    If you are also seeing style or linting suggestions, go to Text Editor > C/C++ > Code Style > Linter in the same Options window. From there, you can disable checks you do not want, or lower their severity so they are less intrusive.

    If the suggestions are definitely coming from Copilot, you can also search for Copilot in Tools > Options and adjust or disable its inline suggestion settings.

    Hope this helps! If my explanation and the information I provided were helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.

    Was this answer helpful?


  2. AI answer

    2026-05-25T13:59:42.86+00:00

    Yes. The behavior described comes from C++ IntelliSense and the C++ linter, not from GitHub Copilot itself. Both can be configured or turned off in Visual Studio.

    To reduce or disable the error popups and suggestions:

    1. Turn off IntelliSense error reporting
      1. In Visual Studio, go to Tools > Options.
      2. Expand Text Editor > C/C++ > IntelliSense.
      3. Under Errors:
        • Clear Show IntelliSense errors in the editor to remove red squiggles.
        • Clear Show IntelliSense errors in the error list window to stop them appearing in Error List.
        • Clear Suggest fixes for IntelliSense errors to stop fix suggestions.
    2. Turn off or soften the C++ linter suggestions
      1. In Tools > Options.
      2. Expand Text Editor > C/C++ > Code Style > Linter.
      3. Either disable specific checks by setting their severity to None, or globally reduce noise by changing severities from Error/Warning to Suggestion.

    These changes will stop or significantly reduce the automatic error/fix suggestions that appear while typing and clutter the editor.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.