Your VS Code workspace has been configured with complete build, run, and test task management for the LibMan project.
.vscode/tasks.json- Main task configuration with 10+ tasks organized in 3 dropdown groups.vscode/settings.json- VS Code C++ and CMake settings.vscode/launch.json- Debug configurations for LibMan and Tests.vscode/extensions.json- Recommended VS Code extensions.vscode/README.md- Full documentation of the setup
Access these by:
- Press
Ctrl+Shift+B(Run Build Task) - Select from dropdown menu
| Task | Purpose |
|---|---|
| Build Debug | Compile LibMan in Debug mode |
| Build Release | Compile LibMan in Release mode |
| Run Debug | Launch debug executable |
| Run Release | Launch release executable |
| Build & Run Debug | Compile + run in one command |
| Build & Run Release | Compile + run in one command |
Access these by:
- Press
Ctrl+Shift+Bthen select Tests group - Or use Command Palette: Tasks: Run Task
| Task | Purpose |
|---|---|
| Configure Tests | Initialize CMake for tests folder (runs first) |
| Build Tests | Compile test suite |
| Run All Tests | Execute all tests via CTest |
Run once before first build:
- CMake: Configure Debug
- CMake: Configure Release
- Open Terminal:
Ctrl+`` - Run:
cmake -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug - Once complete, all other tasks will work
- Press
Ctrl+Shift+B→ Select "Build Debug" or "Build Release"
- Press
Ctrl+Shift+B→ Select "Build & Run Debug" or "Build & Run Release"
- First time only: Run task "Tests: Configure Tests"
- Then: Run task "Tests: Build Tests"
- Finally: Run task "Tests: Run All Tests"
- Press
F5→ Select "Debug LibMan (GDB)" - Automatically builds in Debug mode first
- Press
F5→ Select "Debug Tests (GDB)" - Automatically builds tests first
- Generator: MinGW Makefiles
- Compiler: MinGW 8.1.0 (C:/Qt/Tools/mingw810_32/bin/c++.exe)
- Debugger: GDB (C:/Qt/Tools/mingw810_32/bin/gdb.exe)
- C++ Standard: C++17
- Qt Version: 5.15.2
- Main project:
build/(Debug & Release) - Tests:
tests/build/(Debug only)
build/andtests/build/directories- Dependencies:
.deps/,capnproto/,capnp-install/,lstream/
The project requires these to be installed:
- ZLIB - Add ZLIB development libraries if missing
- Qt 5.15.2 - Already referenced in CMakeLists.txt
- CMake 3.16+ - For build system
If ZLIB is missing, install via:
# Using vcpkg (if available)
vcpkg install zlib:x86-mingw-static
# Or via package manager on your systemEdit .vscode/tasks.json to:
- Change compiler path if different from MinGW
- Adjust parallel jobs (currently
-j4) - Add additional build configurations
- Modify test executable paths
For visual CMake configuration:
- Install "CMake Tools" by Microsoft
- Use the CMake sidebar to configure/build
- Tasks still work alongside CMake Tools
- Reload VS Code:
Ctrl+Shift+P→ "Developer: Reload Window" - Check
.vscode/tasks.jsonfor syntax errors
- Install ZLIB development libraries
- Update CMakeLists.txt path if needed
- First ensure build is successful
- Verify path in task definition matches actual executable location
- Check build folder has the executable
- Ensure "Build Debug" task completes successfully first
- Verify GDB path is correct in settings
- Check launch.json for correct executable paths
.vscode/
├── tasks.json ← Edit to customize build/test tasks
├── settings.json ← C++ compiler and CMake configuration
├── launch.json ← Debug configurations
├── extensions.json ← Recommended extensions
└── README.md ← Detailed documentation
✅ Debug and Release build configurations
✅ Dropdown task selection for easy access
✅ Automatic test discovery and running
✅ GDB debugging support
✅ Parallel build jobs (-j4)
✅ Excluded build/dependency folders from search
✅ Problem matcher for error highlighting
✅ Pre-launch tasks that build before debugging
Setup Complete! You can now use Ctrl+Shift+B to access all build tasks.