ETA/EJS Prettifier
Format Eta and EJS template files in VS Code with stable, predictable output.
Features
- Formatting for
.eta and .ejs
- Supports Format Document and Format Selection
- Safe fallback to full document formatting when selected template tags are unbalanced
- Syntax grammar support for Eta/EJS scriptlet blocks
Quick Start
- Install the extension.
- Open an
.eta or .ejs file.
- Run Format Document.
If needed, choose ETA/EJS Prettifier via Format Document With....
Configuration
Settings namespace: etaEjsPrettifier.*
etaEjsPrettifier.printWidth (default: 100)
etaEjsPrettifier.tabWidth (default: 2)
etaEjsPrettifier.useTabs (default: false)
etaEjsPrettifier.semi (default: true)
etaEjsPrettifier.singleQuote (default: false)
Troubleshooting
- If the file appears plain text, verify language mode is
Eta or EJS.
- If formatting does not run, use Format Document With... and select this extension.
- Reload VS Code window after updates: Developer: Reload Window.
| |