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.
Install this extension: ext install ethode.dotcms-velocity-snippets
Install a VSCode extension that is able to parse Apache Velocity files
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"
},
Recommended: If you plan on using HTML markup to your velocity files, you can also enable Emmet support by adding this to settings.json: