How can I associate the ending .j2 with Jinja and leave .html for non templates?

Answered

I like having that seperate, but I can't find a way to associate a custom ending with Jinja templates. Can anyone help a fella out? I am using PyCharm Pro.

0
1 comment

You can add the extensions to the needed file type in Settings/Preferences | Editor | File Types

Also, you can set the Template language to None so that your HTML files are not associated with any template Settings/Preferences | Languages & Frameworks | Template Languages

0

Please sign in to leave a comment.