Warning notification in Visual Studio

Flaviu_ 1,031 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 Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,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 Answers by the question author, which helps users to know the answer solved the author's problem.