This extension lets you use Cppcheck in VScode with right-click menu.
Features
Right-click on an C/C++ file in the editor view, there will be a command near the bottom to use Cppcheck. Shortcut: (ctrl+alt+c)
Right-click on a folder in explorer view to check all C/C++ files in that directory.
Output will be shown in 2 output channels: "Cppcheck: Errors" and "Cppcheck: Warnings". Note: Warnings channel will include all non-error messages from Cppcheck.
In the output channels, you can use ctrl+click to jump to the corresponding line in the file.
There is a status bar item for Cppcheck showing the errors and warnings count, clicking it will show the error output.
Cppcheck: Options command can be accessed at the command pallette, you can select the desired severity levels for the messages. Selecting all is recommended.
Requirements
Cppcheck must be installed to your system!
You'll need to add cppcheck to the "PATH" environment variable in Windows