Skip to content

VSCode Config

Eric Waldman edited this page Mar 15, 2022 · 9 revisions

Install the C++ and CMake extensions for VSCode.

To support linting and building from VSCode, enter the following into .vscode/settings.json:

Linux

{
    "cmake.sourceDirectory": "${workspaceFolder}/demo",
    "cmake.buildDirectory": "${workspaceFolder}/demo/build"
}

Windows

{
    "cmake.sourceDirectory": "${workspaceFolder}/demo",
    "cmake.buildDirectory": "${workspaceFolder}/demo/build",
    "cmake.generator": "Visual Studio 17 2022"
}

For the cmake.generator field, pick from the supported cmake generators

Clone this wiki locally