Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>dotCMS Velocity SnippetsNew to Visual Studio Code? Get it now.
dotCMS Velocity Snippets

dotCMS Velocity Snippets

Ethode

|
3 installs
| (0) | Free
A collection of Velocity and dotCMS snippets for IntelliSense
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dotcms Velocity Snippets

This extension is a collection of ViewTool methods and directive snippets for use in Velocity template files when working with dotCMS. All snippets feature argument type information and tab stops for all known function calls and directives.

ViewTool methods were derived from either dotCMS's JavaDocs, or the dotCMS source code.

Screenshot

Screenshot of VSCode suggestion using snippets

Quick Start

  1. Install this extension: ext install ethode.dotcms-velocity-snippets
  2. Install a VSCode extension that is able to parse Apache Velocity files
  3. Add the below snippet to your settings.json. None of the existing Velocity LSPs have support for this extension out of the box, but is the standard file extension for Velocity files when working with dotCMS.
    "files.associations": {
      "*.vtl": "velocity"
    },
    
  4. Recommended: If you plan on using HTML markup to your velocity files, you can also enable Emmet support by adding this to settings.json:
    "emmet.includeLanguages": {
      "velocity": "html",
    },
    

Recommended Extensions

luqimin.velocity

Out of the few Apache Velocity extensions, we've found this one to be the most reliable.

Links

  • Apache Velocity
  • dotCMS
  • Ethode

Running the Sample

  • Run the Run Extension target in the Debug View, or press F5

Building extension

  1. npm install -g @vscode/vsce
  2. vsce package
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft