Skip to content

zyxar/Sublime-CMakeLists

Repository files navigation

CMake

Gitter

  • Simple auto-indentation support.
  • Syntax highlighting for CMakeLists.txt files and *.cmake files, based on CMake 3.0.
  • Syntax highlighting for CMakeCache.txt files.
  • Syntax highlighting for .h.in and .hpp.in files.
  • Basic snippets.
  • Basic keybindings.

Available Snippets

All (recent) built-in commands from cmake are provided as a basic snippet.

Available Key Bindings

  • Select a word, and press $ to wrap the selection as a variable substitution. The newly inserted text will stay selected, so that you can press the double-quotes character " to enclose the selection in double-qoutes too. Press tab to get out of the selection if you don't want double-quotes.
  • Select a word, and press ctrlshift, to wrap the selection as a generator expression with an argument.
  • Select a word, and press ctrlshift. to wrap the selection as a generator expression without an argument.