Warning notification in Visual Studio

Flaviu_ 1,091 Reputation points
2023-04-10T09:43:43.4+00:00

I have deliberately added too much code in CMyProject::OnNewDocument, and I have noticed something interesting: Visual Studio 2019 Proffesional Edition has notified me that (automatically): User's image

See green underline at the OnNewDocument method. Thats nice. I have copied the project on another PC, and I have opened the same project in VS2022 Community Edition. No notification, at all. Why ? It is because VS2022 is Community Edition ? Or is there settings which I didn find it ?

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.
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. RLWA32 51,536 Reputation points
    2023-04-10T10:33:25.21+00:00

    Following project setting in VS2022 Community generated the C6262 message: codeanalysis

    Even without that setting my copy of VS2022 Community still displayed the green squiggle warning in the IDE. codeide

    Finally, the documentation at https://learn.microsoft.com/en-us/cpp/code-quality/c6262?view=msvc-170 only shows how to suppress the warning in the IDE through the additional command line options setting. There is no indicated project property for this particular code analysis warning.


0 additional answers

Sort by: Most 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.