VS Code extension for template programmers

The new extension “camindo CMS Templates” supports you when editing template files (*.cms.php) in Visual Studio Code:

  • Colors – (CMS:…) commands in purple, PHP expressions inside them in orange, just like the color highlighting in the camindo backend.
  • Suggestions – after (CMS: the commands, after a space the parameters (mandatory parameters first), after = the fixed values.
  • Help on hover – description of the command and parameter.
  • Syntax check – errors are underlined in red as you type: missing ), unclosed quotation marks, unknown commands or parameters (with a suggestion for typos), missing mandatory parameters.
  • Twelve languages – the descriptions follow the display language of VS Code.

Installation

  1. In VS Code, open the extensions on the left Extensions icon (or ⇧⌘X / Ctrl+Shift+X).
  2. Enter camindo in the search field.
    Search for “camindo” in the VS Code Marketplace
  3. Select camindo CMS Templates and click Install.
    Detail view of the extension “camindo CMS Templates”
  4. Open a *.cms.php file – done.

The language can be set with the setting camindo.language (e.g. de_DE). Projects with their own modules generate their command definitions via the CLI and enter the folder under camindo.commandsFile:

php Core/cron/camindo.php template commands --all --out=var/vscode

Source code and releases: github.com/dirkintelligence/camindo-vscode