Search code examples
visual-studio-codegccg++vscode-tasks

How to show warnings in VSCode editor for a .cpp file?


Is it possible to tweak VSC somehow to see GCC warnings in the text editor?
Refer to the screenshot below - it shows only errors in the console.

I'm using 1.43.2 version with C/C++ extension 0.26.3 installed.
Tried adding -Wall compiler flag to "args" in tasks.json but it didn't help.

enter image description here

Below are my settings:

{
    "editor.fontSize": 13,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 100,
    "files.insertFinalNewline": true,
}

Solution

  • The warning and errors are shown in Problem Panel. You can see Problems 4 on it. You might need to install Visual Studio IntelliCode or C++ Intellisense to help you identify mistakes before compilation.