Jinja2 indent settings for python code

I am planning on generating Python code with Jinja2 templates but the auto-indent for conditionals is making it difficult. Is there a way to disable it. Also in `Settings > Languages & Frameworks > Python Template Language` there is no option to add Python

3

Has this question already been answered elsewhere? I can't find anything about it. Have the same problem.

0

Hi, 

Unfortunately, Python file type is missing from the template language settings. This is a known issue https://youtrack.jetbrains.com/issue/PY-33717/Add-Python-file-type-in-Python-Template-Languages

Please follow the issue for updates, feel free to vote and comment, and let us know if you need any help. If you're not familiar with YouTrack, please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications 

I'm sorry for the inconvenience.

0

请先登录再写评论。