Skip to content

Instantly share code, notes, and snippets.

@brunos3d
Last active August 31, 2022 21:18
Show Gist options
  • Select an option

  • Save brunos3d/8ef6d03626c5e67348904035a8151504 to your computer and use it in GitHub Desktop.

Select an option

Save brunos3d/8ef6d03626c5e67348904035a8151504 to your computer and use it in GitHub Desktop.
How to enable Nx template files (__tmpl__) syntax highlight for vscode

How to enable Nx template files (tmpl) syntax highlight for vscode

This gist demonstrate how to enable syntax highlight on vscode for nx template files.

The Nx template files uses EJS syntax

To enable the syntax hightlight for EJS just install this extension and add the config below to your vscode settings.json file

Addtionally you can add *__tmpl__ your .prettierignore file

{
"emmet.includeLanguages": {
"ejs": "html",
},
"files.associations": {
"*__tmpl__": "html",
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment