2

Simple question but one I cannot find the answer to - having scoured the settings I can't find how to change my Code Analysis Mode from Manual. I presume other modes must exist since it bothers to tell me which mode it's in. I'm learning C so this feature is new to me.

Code Analysis Mode img

harrymc
  • 498,455

1 Answers1

0

Add "C_Cpp.codeAnalysis.clangTidy.enabled": true to the JSON settings. Also verify that "C_Cpp.codeAnalysis.runAutomatically" is either not present or is set to true.

To verify that it worked, hover over {} in the lower right of the status bar (to the left of C or C++) and now the Code Analysis Mode should be Automatic, rather than Manual: Shows "Code Analysis Mode: Automatic"

Reference: https://github.com/microsoft/vscode-cpptools/issues/11316#issuecomment-1677796258

calamari
  • 101