<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato" -->

---
title: Visual Studio Code CMake Tools 1.24 | daily.dev
description: CMake Tools 1.24 for Visual Studio Code adds Run and Debug CodeLens actions for CTest tests directly in the editor, builds only the target dependencies needed...
canonical: https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Visual Studio Code CMake Tools 1.24 | daily.dev
og:description: CMake Tools 1.24 for Visual Studio Code adds Run and Debug CodeLens actions for CTest tests directly in the editor, builds only the target dependencies needed...
og:url: https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato
og:image: https://api.daily.dev/og/posts/ZLZ14watO.png
og:image:alt: Visual Studio Code CMake Tools 1.24
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Visual Studio Code CMake Tools 1.24

**[DevBlogs](https://daily.dev/sources/devblogs)** · 4 min read · 1 upvotes · 0 comments

## Summary

CMake Tools 1.24 for Visual Studio Code adds Run and Debug CodeLens actions for CTest tests directly in the editor, builds only the target dependencies needed for a selected test, and lets developers save preset-backed cache edits as user overrides in CMakeUserPresets.json without modifying shared presets. It also adds automatic updates to CMakeLists.txt source-file entries when files are created or deleted in Explorer, plus reliability fixes such as clearer crash and timeout messages and support for compiler arguments with CMake 4.3+.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/cppblog/visual-studio-code-cmake-tools-1-24>

## Questions this post answers

### How do I run or debug a CTest test directly from the editor in CMake Tools for VS Code?

CMake Tools 1.24 adds Run and Debug CodeLens actions above discovered CTest tests with resolved source locations, letting you build and execute a test without switching to the Testing view. When the test command maps directly to a CMake executable target, Run builds only that target and its dependencies rather than the full default build target, and Debug requires the executable to be built beforehand along with a suitable C++ debugger.

_daily.dev surfaces workflow updates like this for developers keeping their CMake and VS Code setup current._

### How does CMake Tools handle cache edits that conflict with values set in a configure preset?

As of CMake Tools 1.24 for Visual Studio Code, the Cache Editor saves edits to preset-backed variables as overrides written to CMakeUserPresets.json instead of letting the next configure overwrite them with the preset's value. A new Source column in CMake: Edit CMake Cache (UI) shows whether an entry matches its preset or was changed in cache, and the shared CMakePresets.json file stays untouched.

_developers juggling shared CMake presets across a team can track tooling changes like this via daily.dev._

## Similar posts on daily.dev

- [Qt Creator 19 - CMake Update](https://daily.dev/posts/qt-creator-19---cmake-update-esmvmwigm) · Qt · 0 upvotes · 0 comments
- [Microsoft brings C\+\+ smarts to GitHub Copilot in Visual Studio Code](https://daily.dev/posts/microsoft-brings-c-smarts-to-github-copilot-in-visual-studio-code-lbd8yht0l) · InfoWorld · 0 upvotes · 0 comments
- [Visual Studio Code 1.121](https://daily.dev/posts/visual-studio-code-1-121-rgoaodajp) · Visual Studio Code · 12 upvotes · 0 comments
- [Qt Creator 21 - CMake Changes](https://daily.dev/posts/qt-creator-21---cmake-changes-1oz7ejkpj) · Qt · 1 upvotes · 0 comments
- [MSVC Build Tools Preview updates](https://daily.dev/posts/msvc-build-tools-preview-updates-jcmaocqst) · DevBlogs · 0 upvotes · 0 comments

---

Tags: [#c](https://daily.dev/tags/c), [#vscode](https://daily.dev/tags/vscode), [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Visual Studio Code CMake Tools 1.24","url":"https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato"},"datePublished":"2026-09-25T22:39:49.583Z","dateModified":"2026-09-25T22:40:09.012Z","description":"CMake Tools 1.24 for Visual Studio Code adds Run and Debug CodeLens actions for CTest tests directly in the editor, builds only the target dependencies needed...","image":"https://media.daily.dev/image/fetch/s--BddYuyki--/f_auto,pg_1,q_auto/https://devblogs.microsoft.com/cppblog/wp-content/uploads/sites/9/2026/09/run-cart-appliesdiscount-from-codelens-and-build-i-1.gif?_a=BAMAMiZY0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--BddYuyki--/f_auto,pg_1,q_auto/https://devblogs.microsoft.com/cppblog/wp-content/uploads/sites/9/2026/09/run-cart-appliesdiscount-from-codelens-and-build-i-1.gif?_a=BAMAMiZY0","isAccessibleForFree":true,"articleSection":"DevBlogs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevBlogs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8f68b453325f482ebeb73fb780092713","url":"https://daily.dev/sources/devblogs"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c,vscode,c++","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevBlogs","item":"https://daily.dev/sources/devblogs"},{"@type":"ListItem","position":3,"name":"Visual Studio Code CMake Tools 1.24"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/visual-studio-code-cmake-tools-1-24-zlz14wato#faq","mainEntity":[{"@type":"Question","name":"How do I run or debug a CTest test directly from the editor in CMake Tools for VS Code?","acceptedAnswer":{"@type":"Answer","text":"CMake Tools 1.24 adds Run and Debug CodeLens actions above discovered CTest tests with resolved source locations, letting you build and execute a test without switching to the Testing view. When the test command maps directly to a CMake executable target, Run builds only that target and its dependencies rather than the full default build target, and Debug requires the executable to be built beforehand along with a suitable C++ debugger. daily.dev surfaces workflow updates like this for developers keeping their CMake and VS Code setup current."}},{"@type":"Question","name":"How does CMake Tools handle cache edits that conflict with values set in a configure preset?","acceptedAnswer":{"@type":"Answer","text":"As of CMake Tools 1.24 for Visual Studio Code, the Cache Editor saves edits to preset-backed variables as overrides written to CMakeUserPresets.json instead of letting the next configure overwrite them with the preset's value. A new Source column in CMake: Edit CMake Cache (UI) shows whether an entry matches its preset or was changed in cache, and the shared CMakePresets.json file stays untouched. developers juggling shared CMake presets across a team can track tooling changes like this via daily.dev."}}]}
```

