Editor integration
Reettier is the formatter behind the Ree Templates extension for Visual Studio
Code. Installing the extension gives you format-on-save and the Format Document
command for .ree files, backed by the same binary you run on the command line.
Install the extension
Install Ree Templates from the Visual Studio Marketplace, then read the extension documentation for syntax highlighting, icons, and settings.
Point the extension at Reettier
The extension calls the reettier binary. By default it looks for reettier on your
PATH, so once you have installed Reettier
formatting works out of the box.
If Reettier is not on your PATH, set its absolute location in your VSCode
settings:
{
"ree.reettierPath": "/Users/you/.local/bin/reettier"
}
Format on save
Enable format-on-save for Ree files in your settings:
{
"[ree]": {
"editor.defaultFormatter": "reepolee.ree-templates",
"editor.formatOnSave": true
}
}
The extension sets reepolee.ree-templates as the default formatter for the
ree language automatically, so you usually only need to turn on
editor.formatOnSave.
See the extension's Configuration page for the full list of settings.