Example project for VSCode using Devcontainers for C/C++. See Google Slides presentation in Portuguese.
If not using devcontainers, then:
- Install basic Microsoft C/C++ extension
ms-vscode.cpptools-extension-packand allow it on configuration.vscode/settings.json:"C_Cpp.intelliSenseEngine": "default",
- Install cpplint extension
mine.cpplint - Install catch2 tests extension
matepek.vscode-catch2-test-adapter
If testing is desired, just update CMakeLists and make BUILD_TESTING to ON.
If external fmt library is desired, just update CMakeLists and make USE_EXTERNAL_FMT to ON.
- Do NOT use devcontainers (install clang compiler, cmake and ninja locally)
- Use CMake 4.1 or 4.3 or latest (and update key on CMakeLists.txt accordingly)
- Use ninja (not make)
- Install extension clangd for vscode (and disable Microsoft C++ extension)
- Use Clang instead of GCC on CMakeLists.txt (see presentation on how to do it)
The easiest way to build this is to just use cxxbuild project:
python3 cxxbuild.py
MIT License