GitHub starsMarketplace installsMarketplace rating

CMake Language Support

CMake Language Support implements common code editor features for CMake in Visual Studio Code.

โ†“

1,700,000+

Installs

โ˜†

4.8

Rating

Core capabilities

Features

๐ŸŽจ

Syntax Highlighting

โšก

Auto Completion

โ„น๏ธ

Quick Info

โœ๏ธ

Signature Help

๐Ÿšจ

Syntax Errors / Warnings

๐Ÿงน

Format Document

๐Ÿงฉ

Format Selection

๐Ÿท๏ธ

Rename Symbol

๐Ÿ’ฌ

Comment Line / Block

๐Ÿงญ

Document Symbols

๐Ÿ”ฆ

Document Highlights

๐Ÿ—‚๏ธ

Folding Ranges

๐Ÿ“

Go to Definition

๐Ÿ”—

Go to References

๐Ÿ”Ž

Find All References

๐Ÿงฑ

Brace Completion

๐Ÿงฒ

Brace Matching

โญ•

Brace Surrounding

โ†ช๏ธ

Smart Indentation

Installation

The extension needs .NET to power language features. Choose the setup method that suits your machine.

1

On first run, the extension Microsoft's .NET Install Tool for Extension Authors will install the runtime automatically.

If setup fails on your machine, follow the manual steps.

Configuration

Format and language-server options

Format options

Live preview

Highlighted lines are changed by enabled options.

CMake
cmake.format.spaceAfterCommandName Default
message()
cmake.format.spaceInParentheses Default
message(arg)
cmake.format.allowOptionalArgumentIndentation Default
find_package( Boost REQUIRED COMPONENTS filesystem system)

Intelligence

CMake File API

Use CMake's File API to enrich symbols, references, targets, and configurations.

Command signatures are derived from CMake docs and may not be 100% exact in every edge case.

Feedback from developers using CMake Language Support.

Ronny Gloden

Marketplace source Marketplace
2025-08-27

โ€œThanks so much.โ€

โ˜…โ˜…โ˜…โ˜…โ˜…
2024-09-09

โ€œPretty good. Even though I could not install the dotnet extension for organizational reasons, syntax highlighting and autocomplete worked perfectly.โ€

โ˜…โ˜…โ˜…โ˜…โ˜…

Raphael Kimbula

Marketplace source Marketplace
2023-11-29

โ€œThank you for this. This extension actually works, compared to the one from twxs.โ€

โ˜…โ˜…โ˜…โ˜…โ˜…

Mikael Hermansson

Marketplace source Marketplace
2022-11-02

โ€œVery good indeed. Being able to rename variables with some degree of confidence is fantastic.โ€

โ˜…โ˜…โ˜…โ˜…โ˜…

Antoine Charpentier

Marketplace source Marketplace
2022-10-15

โ€œFar superior than unmaintained CMake extension by twxs.โ€

โ˜…โ˜…โ˜…โ˜…โ˜