Skip to content

VSCode Config

Eric Waldman edited this page Apr 1, 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}",
    "cmake.buildDirectory": "${workspaceFolder}/build"
}

Windows

{
    "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.

Clone this wiki locally