I
I
Igor Che2016-09-01 12:43:51
PyCharm
Igor Che, 2016-09-01 12:43:51

How to specify jinja2 file type in Pycharm?

I create a jinja2 template in Pycharm 5.0.04, but the syntax is not highlighted in any way.
For other templates, I somehow specified the file type. It was in plain sight somewhere. And now I can't find where it says so. I've been fiddling with the settings for an hour now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shmele, 2016-09-12
@shmele

In PyCharm 2016.2.3 the 'Change File Language' command works. I did not find a shortcut for it by default.
You can call it like this: Ctrl + Shift + A -> type 'Change File Language' -> Enter.
A menu will appear with a choice of the current file type.
8d04c77f8bff4ce791720655af2d8d5e.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question