A Visual Studio Code extension that streamlines CMake-based development with presets, IntelliSense, debugging, tasks, and CTest integration.
Overview
CMake Tools is a Visual Studio Code extension aimed at native developers who build projects with CMake. It provides an integrated workflow for configuring, building, debugging, and testing CMake projects from within the editor instead of juggling separate tools.
The extension supports CMake presets for advanced configuration, rich IntelliSense for CMake-related editing, a built-in debugger for CMake scripts, and configurable CMake tasks. Its interface can be tailored so you can control projects in a way that fits your setup.
CTest integration lets you run tests and monitor results from the same environment. Setup expects CMake to be available on the machine, either from a bundled Visual Studio installation or another install pointed to via the cmake.cmakePath setting.
The extension is maintained by Microsoft and collects usage telemetry through the same Visual Studio Code telemetry.enableTelemetry setting unless you turn telemetry off.
Key features
- CMake presets support
- Rich IntelliSense in the editor
- CMake script debugger
- Configurable CMake tasks
- Customizable project control UI
- CTest test execution
- CTest result monitoring
- Visual Studio bundled CMake option
Use cases
- Configure CMake projects in VS Code
- Debug CMake script files
- Run and monitor CTest suites
- Manage native C and C++ builds