This is a template to use cmake in vscode. You need install these: vscode C/C++ CMake Ninjia Clangd Save the CMakeLists.txt to configure cmake, and then Ctrl+Shift+P to run clangd: restart language server.