Associate .tera files with twig plugin

Answered

Hi,

One of my projects that I'm developing requires *.html.tera for the templates that I create. Tera is based on the Jinja2 and the Django template language.

I have installed the https://plugins.jetbrains.com/plugin/7303-twig plugin that works for *.html.twig files. Twig is also based on the Jinja2 and the Django template language.

What I would like to do is configure IntelliJ Idea to use the twig template plugin for both *.html.tera and *.html.twig files.

I've looked into File Associations and Live Templates but none of them make the Twig plugin work with *.html.tera files. Do you know how I can get this to work?

0
2 comments

The following file type mapping seems to associate *.html.tera with Twig plug-in. Is that what you need?

1

That was a lot easier than I had expected it to be.

Thank you, Serge.

 

0

Please sign in to leave a comment.