samuelcolvin / jinjahtml-vscode

Syntax highlighting for jinja(2) html templates in vscode
https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml
MIT License
135 stars 55 forks source link

Formatter removes all indentations #134

Open tk-90-github opened 1 year ago

tk-90-github commented 1 year ago

I like the syntax highlighting and formatting much EXCEPT:

When i indent my blocks and conditional statements, all the identation is removed.

Disabling this plugin solved it but that's not what I like to do.

Can you provide me a solution/some settings.json-config for VSCode or get a fix for it?

RyanBaig commented 9 months ago

its probably because html formatter and such dont know what to do with jinja template tags, and just write them like plaintext. Please also let me know if u find a formatter that works with this extension,

samuelcolvin commented 9 months ago

There's no solution I know of for this.