Sublime Text 2/3 - CMake Package
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Snippets
tools
AutoComplete.py
CMake C Header.sublime-syntax
CMake C++ Header.sublime-syntax
CMake.sublime-syntax
CMake.tmLanguage
CMakeCache.sublime-syntax
CMakeCache.tmPreferences
CMakeCommands.sublime-syntax
CMakeCommands.yml
Comments.tmPreferences
Default.sublime-keymap
Indent.tmPreferences
README.md
Symbol List.tmPreferences
syntax_test.txt
syntax_test_.h.in
syntax_test_.hpp.in

README.md

Sublime Text 2/3 - CMake Package

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

  • cmake_minimum_required
  • foreach
  • if
  • option
  • project
  • set
  • while

If an argument to a command is optional, it is selectable when you tab through the snippet, and you can then press backspace to remove the optional argument.

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.