January 27th, 2026
0 reactions

Visual Studio Code CMake Tools 1.22: Target bookmarks and better CTest output

Sinem Akinci
Senior Product Manager

We’re excited to announce the latest 1.22 release of the CMake Tools extension for Visual Studio Code. This update brings a host of new additions, including project outline updates for filtering and bookmarking CMake targets in large CMake projects and expanded CTest support to customize this output. To view the full list of updates with this release, please look at our CHANGELOG.

This release features the following contributions from our open-source community. Thank you for your continued support!

Project Outline view updates: Filter and bookmark your CMake Targets

Navigating through large CMake projects with many nested targets can sometimes be difficult. The Project Outline view has been updated to have filtering and bookmarking support, making it easier to manage your CMake targets.

Filter through complex target outlines

You can now filter the Project Outline view to quickly locate specific targets in large projects. This is especially useful when working with projects that generate dozens of targets across multiple subdirectories.

The option to filter is selected under the CMake Project outline view.

For example, you might filter targets by a feature area or naming convention.

CMake filtered to anything with Vehicles

Bookmark commonly used CMake targets

CMake Tools now supports bookmarking commonly used targets so they appear in a dedicated Bookmarks section in the CMake sidebar. This provides quick access to targets you build, debug, or run most often, without having to repeatedly search through the full project hierarchy.

To bookmark a target, navigate to the desired target in the Project Outline view and select Toggle Bookmark.

Option to Toggle Bookmark on hover over a given CMake targe.

This will add the selected target to the separate Bookmarks section in the CMake sidebar. From here, commonly used targets can be built, debugged, or ran in the terminal.

Improved CTest failure output.

This release also improves the CTest experience by adding support for configurable failure patterns. With the new Failure Patterns setting, you can tell CMake Tools how to interpret test output so failures surface more useful and structured information.

The CMake CTest failure patterns setting which accepts regex for searching CTest output for additional details about failures.

This is particularly helpful for test frameworks where important failure details, such as diffs or assertion outputs, are embedded in test logs. Instead of manually digging through raw output, you can define patterns that extract and highlight the relevant information directly after a test fails.

For example, you can define how CHECK_EQUAL shows diffing straight to the user.

Example failure patterns setting where it checks the output of CHECK_EQUALThis allows the user to have a transparent view of their test failures and quickly debug any test output.

Visual of check equal failure with expected and actuals

What do you think?

Download Visual Studio Code and our C++ extensions (CMake Tools and C/C++) and let us know what you think. We would love to see what you contribute to our repo. Please create an issue if there’s anything you’d like to see and upvote/downvote any existing issues. Comment below or reach us via email at visualcpp@microsoft.com, via X at , or via Bluesky at @msftcpp.bsky.social.

 

 

Author

Sinem Akinci
Senior Product Manager

C++ Product Manager working on Copilot, CMake, and Linux experiences in Visual Studio and VS Code

0 comments