This extension adds tokenization and autocompletion support for .template files in VS Code, providing a TypeScript-like syntax in HTML, similar to how TSX templates work. It enhances your workflow by supporting embedded expressions, providing autocompletion for class members, all within your HTML templates.
The motivation behind this extension was to bring TypeScript-like functionality to .template files, making it easier for developers to work with template-based projects in VS Code, especially those using React-like patterns, TypeScript, or similar frameworks.
Features
Supports TypeScript-style embedded expressions in .template files, including this.<property> for class members like this.test or this.var2.
Provides autocompletion for class properties and methods inside .template files, allowing you to use this.<property> with type support.
Detects embedded expressions, such as {{expression}}, and tokenizes them as embedded JavaScript.