cpp-project-generator
Yet another C++ project generator — a VS Code extension that scaffolds a ready-to-build C++ project with a single command.
What you get
- CMake project: library (
src/, include/) + executable + gtest test wired to ctest
- Dependencies via vcpkg manifest (
vcpkg.json), toolchain wired through CMakePresets.json ($env{VCPKG_ROOT}, no absolute paths)
- clangd + clang-format + ClangTidy configuration
- VS Code tasks (configure / build / test) and an LLDB launch config
Usage
- Command Palette →
C++ Gen: New Project
- Answer two questions: project name, C++ standard (17/20/23)
- Pick a parent folder — the project opens in a new window and configures on open
Requirements: CMake ≥ 3.21, vcpkg (VCPKG_ROOT environment variable), clangd, plus the CMake Tools / clangd / vscode-lldb extensions.
Development
npm install
npm run watch # rebuild on save
# then F5 → Extension Development Host
Credits
The MultiStepInput helper is derived from microsoft/vscode-extension-samples (MIT License).
| |