ViewModel Highlighting & Formatter is a VSCode extension that provides syntax highlighting and smart formatting for .viewmodel files that include embedded JavaScript and custom [[ ... ]] templating.
✨ Features
Syntax highlighting for .viewmodel templates
JavaScript-aware formatting using VSCode’s built-in formatter
Preserves original structure: semicolons, blank lines, var declarations, etc.
Supports [[ ... ]] and [[= ... ]] templating placeholders
Only formats the content of selected blocks: header, body, declarations