VS Code Setup Guide
May 20, 2026 ยท View on GitHub
Complete Setup Documentation
Your VS Code workspace has been configured with complete build, run, and test task management for the LibMan project.
๐ฆ What's Configured
VS Code Configuration Files
tasks.json- 10+ build/run/test taskssettings.json- Compiler & CMake configlaunch.json- Debug configurationsextensions.json- 7 recommended extensions
Features Included
โ
Debug & Release builds
โ
One-click build + run
โ
Full GDB debugging support
โ
Test compilation & execution
โ
Pre-configured compiler paths
โ
Code analysis exclusions
โ
Parallel builds (-j4)
โ
CMake integration
๐ฏ Available Tasks
Compilation & Running LibMan (Ctrl+Shift+B)
- Build Debug
- Build Release
- Run Debug
- Run Release
- Build & Run Debug
- Build & Run Release
Tests (Ctrl+Shift+B)
- Configure Tests
- Build Tests
- Run All Tests
CMake Configuration (Ctrl+Shift+B)
- CMake: Configure Debug
- CMake: Configure Release
Debugging (F5)
- Debug LibMan (GDB)
- Debug Tests (GDB)
โก Quick Usage
Build & Run
- Press
Ctrl+Shift+B - Select "Build & Run Debug"
- Press Enter
Debug
- Press
F5 - Select "Debug LibMan (GDB)"
- App launches with debugger
Run Tests
- Press
Ctrl+Shift+B - Select "Tests: Run All Tests"
- Tests execute
๐จ Build Configuration
Compiler Settings
- Compiler: MinGW 8.1.0 (32-bit)
- Path:
C:/Qt/Tools/mingw810_32/bin/c++.exe - C++ Standard: C++17
- Debugger: GDB
CMake Settings
- Generator: MinGW Makefiles
- Build Directory:
build/ - Test Build Directory:
tests/build/ - Parallel Jobs: 4 (
-j4)
Excluded Directories
From explorer and search:
build/tests/build/.deps/capnproto/capnp-install/lstream/coverage.*(coverage files)
๐ Configuration Files
.vscode/tasks.json
Contains all build and run tasks. Edit to:
- Add new build configurations
- Change compiler flags
- Modify parallel jobs
- Customize task behavior
.vscode/settings.json
Controls VS Code behavior. Edit to:
- Change compiler path
- Modify CMake settings
- Adjust code analysis
- Change editor formatting
.vscode/launch.json
Debug configurations. Edit to:
- Change executable paths
- Add debug arguments
- Modify GDB settings
- Add more debug targets
๐ Getting Started
First Time
- Install ZLIB (see DEPENDENCIES.md)
- Configure CMake:
Ctrl+Shift+Bโ "CMake: Configure Debug" - Build:
Ctrl+Shift+Bโ "Build Debug" - Run:
Ctrl+Shift+Bโ "Run Debug"
Regular Development
- Build:
Ctrl+Shift+B(use dropdown) - Debug:
F5(starts with automatic build) - Test:
Ctrl+Shift+Bโ "Tests: Run All Tests"
๐ง Customization
Increase Build Speed
Edit .vscode/tasks.json, find build tasks, change -j4 to -j8:
"args": ["--build", "build", "--config", "Debug", "-j8"]
Use Different Generator
In .vscode/tasks.json, change "MinGW Makefiles" to:
"Ninja"(requires Ninja installed)"Visual Studio 16 2019"
Change Compiler
Edit .vscode/settings.json:
"C_Cpp.default.compilerPath": "path/to/your/compiler"
๐ Related Documentation
- Quick Start: Quick Start Guide
- Dependencies: Install ZLIB
- Troubleshooting: Troubleshooting Guide
- Advanced: Advanced Customization
- Reference: Quick Reference Card
Back to: Documentation Index