Bad CMake executable "/snap/bin/cmake". Is it installed or settings contain the correct path (cmake.cmakePath)?
首先移除/snap/bin/cmake
snap remove cmake
之后再安装 deb-packaged 版本
sudo apt-get update
sudo apt-get install cmake
sudo apt-add-repository universe
sudo apt-get install cmake-extras
重启vscode 再重新创建CMakeList.txt代码可以补全