Install the C++ and CMake extensions for VSCode.
To support linting and building from VSCode, enter the following into .vscode/settings.json:
.vscode/settings.json
{ "cmake.sourceDirectory": "${workspaceFolder}", "cmake.buildDirectory": "${workspaceFolder}/build" }
{ "cmake.sourceDirectory": "${workspaceFolder}", "cmake.buildDirectory": "${workspaceFolder}/build", "cmake.generator": "Visual Studio 17 2022" }
For the cmake.generator field, pick the supported cmake generator for the compiler you intend to use.
cmake.generator
There was an error while loading. Please reload this page.