Sadly, this is a PyCharm professional feature (see here).
But for the professional version and as mentioned in https://youtrack.jetbrains.com/issue/PY-1032, there is already Jinja support in PyCharm. You can set it (if not already recognized) via:
Settings/Preferences | Languages & Frameworks | Template Languages

And optionally add other file extensions (if Jinja files are not saved as .html
) in:
Settings/Preferences | Editor | File Types

If you're working on Flask/Django or similar, don't forget to declare the Template Folder in:
Settings/Preferences | Project: <project name> | Project Structure

If the setup is done (it is possible that you don't have to setup anything, because everything is working out of the box), you can see that Jinja2 is detected and working, e.g.:
