使用 https 从 github clone 仓库
- 在 https://github.com/settings/tokens 生成一个新 token
- 执行 git clone https://github.com/${user_name}/${repository_name}.git 并输入密码时,将密码输入成刚刚生成的 token
vscode + clangd 插件 + cmake 配置代码提示
- 在
CMakeListst.txt
中添加set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
- clangd 插件的
- Arguments 中添加
--compile-commands-dir=${workspaceFolder}/build
- Fallback Flags 中添加
--std=c++23
- Arguments 中添加
- 参考: https://github.com/xuexcy/cpp_cmake_project_template