After installing this module, you must configure it because it doesn't work out of the box.
Indeed to work the module ms-vscode.cpptools needs to have a valid.vscode/c_cpp_properties.json file.
You can configure it by running the command C/C++: Edit Configurations (UI) or C/C++: Edit Configurations (JSON) from the Command Palette (Ctrl+Shift+P).
is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations.
is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or C with Classes.
Change enable from False to True in the c_cpp section (cf ).
You can also take a look at the .
C/C++: Edit Configurations
C/C++: Edit Configurations (UI)
For more details read and how to configure it with:
You can also create a file .vscode/tasks.json to compile your program:
You can also create the .vscode/launch.json file to run the :
This adds language support for C/C++ to Visual Studio Code, including features such as and .
C++ completion
This is an advanced, modern, static analysis extension for C/C++ that supports a number of back-end analyzer programs.
This allows you to run your , , and (experimental) tests for Visual Studio Code.
Cpp tests
provides the native developer a full-featured, convenient, and powerful workflow for CMake-based projects in Visual Studio Code.