Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TransforminatorNew to Visual Studio Code? Get it now.
Transforminator

Transforminator

qris

|
477 installs
| (0) | Free
Transforminator generates documents from xslt, freemarker templates or groovy scripts.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-transforminator extension for Visual Studio Code

Attention: Always update the transforminator tool when updating this extension!

The extension offers integration with the Transforminator java tool that generates output based on Freemarker, Xslt or groovy templates. The tool and this extension are specificaly developed for use in an opentunnel environment, but may also be used to debug your templates for other environments.

Freemarker and xslt syntax support

This extension also adds specific Opentunnel snippets to the freemarker and xslt langauage and the tooling to test your template output on your local system.

For full freemarker language support you also need to Install

Xslt languge support is also available in visual studio code.

Install

The actual generator is an external java tool that needs to be available on your system. transforminator.jar You may download Transforminator latest release here. And full documentation for the tool can be found in this README and here.

First download and install a jave jre. Prefeeable is the Amazon Coretto 17 jre. Install Instructions can be found here. Then place the downloaded Transforminator.jar in a directory that you can use from the vscode extension.

Extension Settings

After installing the extension from the marketplace and downloading the Transforminator java tool, you need to do some settings.

Settings

First the extension needs to know where to find the tool so it can be run. It is good practice to place the tool in a seperate directory like tools.

The tool uses a java runtime environment (jre). That needs to be installed as well. Normaly the extension detects you jre/jdk installation so you do not need to change the java setting.

tool settings

Usage

First add a directory to your workspace and open your ftl file. Then press CTRL-SHIFT P. This give you a selection of commands that can be run. Type transforminator and press the cog to add a key-binding to the generateDocument command.

select extension

Set you keybinding for the transforminator:Transforminator generatedocument command. I use ALT-G

key binding

So now we can run the extension. Press ALT-G.

When no config is pressent the extension creates a default transforminator.yaml (depending on your config) in the .vscode directory.

new config

In this config you find the minimum that is needed run the tool; name of the configs, the outputfile and the inputfile. Edit this file to customize and add your configs. The transforminator.yaml file can hanlde all Transforminator tool run uptions and are named like so:

config yaml

When you run the command and the files in the config are missing it aks if they should be created. You may then change them for further use.

You may use transforminator.addConfig command to add a new config to the yaml-config. You can do this in the yaml file as well. Press CTRL-SHIFT-P and type transforminator. Then select transforminator.addConfig (It is more convenient to immediately add a key-binding using the cog).

Then the command asks for a name, inputfilename, outputfilename. And when the new config is succesfully added a information message is shown from where you can open the yaml-config to make you changes.

open new config

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft