Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CMake IntelliSenceNew to Visual Studio Code? Get it now.
CMake IntelliSence

CMake IntelliSence

Kylin-IDE Team

|
22,635 installs
| (6) | Free
CMake format, completion, go to definition, document link, semantic tokens, and more...
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Description

CMake IntelliSense is a Visual Studio Code extension that supports the CMake language. It provides features such as syntax highlighting, semantic tokens, document formatting, and code completion for CMake scripts.

Note

This extension provides CMake language support and is generally used in conjunction with the CMake Tools extension. Since version 1.20.x, the ms-vscode.cmake-tools extension has provided CMake language services. You may see duplicate completion items if you have both extensions installed. This extension is included in the KylinIdeTeam.kylin-cpp-pack extension pack, which you can also install to support C/C++ development.

Feedback

This extension is still under development, you may encounter bugs or missing features. If you have any suggestions or find any bugs, please feel free to open an issue on github. Your feedback is highly appreciated.

Requirements

No other runtime dependencies are required. You should have CMake installed.

Features

  • syntax highlight
  • semantic tokens
  • commands, variable, properties... auto complete
  • document format
  • document link
  • go to defination
  • publish diagnostics
  • code action

demo

Development

Note: This section describes the development environment setup required for modifying/developing this extension. If you just want to use this extension, simply install it without any additional setup.

This project use antlr4 to generate the parser and lexer for CMake language. You need to setup antlr4 command line tool before you start development.

  1. Install Java JDK/JRE, make sure java command is available in your terminal
  2. Download antlr-4.13.2-complete.jar
  3. Add a script named antlr4 in your path, and set the script content as follows:

on Linux/macOS, you can name the script antlr4 and add execute permission to it, then put it in your path. The content of the script is as follows:

java -jar /path/to/antlr-4.13.2-complete.jar "$@"

on Windows, you can name the script antlr4.bat and put it in your path. The content of the script is as follows:

java -jar C:\path\to\antlr-4.13.2-complete.jar %*

After setting up antlr4 command line tool, you can flow the steps below to start development:

  1. Clone the repository and open it in Visual Studio Code
  2. Run npm install to install dependencies
  3. Run npm run develop to compile the source code
  4. Select Client + Server in the debug panel and press F5 to start the extension

Todo

  • Add more LSP features
  • Performance optimization
  • Unit/Integeation tests
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft