Syntax Highlighting
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
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.
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.
Install .NET Runtime for your OS:
Set `cmake.languageSupport.dotnetPath` to your `dotnet` executable path.
On Windows this is usually `C:/Program Files/dotnet/dotnet.exe`.
Configuration
Format and language-server options
Live preview
Highlighted lines are changed by enabled options.
cmake.format.spaceAfterCommandName Defaultcmake.format.spaceInParentheses Defaultcmake.format.allowOptionalArgumentIndentation DefaultIntelligence
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.
Reviews
Feedback from developers using CMake Language Support.
Ronny Gloden
โThanks so much.โ
Hei Go
โPretty good. Even though I could not install the dotnet extension for organizational reasons, syntax highlighting and autocomplete worked perfectly.โ
Raphael Kimbula
โThank you for this. This extension actually works, compared to the one from twxs.โ
Mikael Hermansson
โVery good indeed. Being able to rename variables with some degree of confidence is fantastic.โ
Antoine Charpentier
โFar superior than unmaintained CMake extension by twxs.โ