Closed hyvyys closed 6 months ago
Code gets indented if a statement of expression spans multiple lines. But because this plugin doesn't parse and format jinja/python code there is no way of knowing how to further indent the content of the block. This results in the whole block being indented to the same level.
I would be open to add this feature if there was a good javascript jinja parser.
If that’s feasible at all, then the simplest solution would be to leave any Jinja content as-is, with the exception of indenting/dedenting everything as a whole as needed. (Perhaps this could be an opt-in feature?)
Fixes by v1.4.0
The following:
get unnecessarily reformatted to this: