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

CMake Highlight

zchrissirhcz

|
44,966 installs
| (2) | Free
CMake language support for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode CMake Highlight

This extension provides CMake syntax highlighting for Visual Studio Code.

Install

Search and install cmake-highlight in VSCode extension marketplace:

search-and-install

screencast

Features

  • Colorization
  • Completion Lists

completion

  • Code comments

comment

  • Snippets

find_package

include

  • Quick Help

tooltip

  • Access To Online Help

Options

The following Visual Studio Code settings are available for the Cmake extension. These can be set in user preferences (cmd+,) or workspace settings (.vscode/settings.json).

{
    "cmake.cmakePath": "/path/to/cmake"
}

Commands

  • CMake: Online Help to go to the CMake online documentation (according to the current cmake version).

Local build

git clone https://github.com/zchrissirhcz/vscode-cmake-highlight.git
cd vscode-cmake-highlight

npm install -g @vscode/vsce
npm install typescript -g
npm install
...
vsce package # generate the .vsix file
# if your ~/.npmrc contains `prefix=~/.npm-global`, then use the following command
# ~/.npm-global/bin/vsce package

Change index.d.ts:

<reference lib="es2015" />

to

<reference lib="es2015" >

Acknowledgements

This extension is based on CMake For VisualStudio Code.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft