Reputation: 36806
Is there an extension for Visual Studio Code that will highlight Angular template syntax in component HTML templates?
Right now, without any syntax highlighting in the template, it just looks like a mess since it is one solid color without any contrast.
Upvotes: 1
Views: 954
Reputation: 24406
Try this extension angular2-inline I been used and It's very good
Upvotes: 0
Reputation: 2273
If you want proper syntax highlighting in your templates, the easiest way is to store your templates in their own files. This is what your example looks like in VSCode if you store that template in its' own .html
file for example:
That said, if you want to keep using inline templates, this plugin is what you are looking for.
Upvotes: 2