简体   繁体   中英

VS Code prettifier for HTML emails

I'm looking for a code prettifier/formatter extension that will format HTML, specifically in the context of marketing emails.

ALL of the existing products I've seen don't take MSO conditionals into account在此处输入图片说明 and will throw off the auto-indentation as a result (see screenshot). It might seem like a trivial issue, but it would incrementally improve my productivity to have properly indented code, rather than being visually chaotic.

Thanks in advance guys

There is a setting in VS code that autoformats your code on save.

editor.formatOnSave

By enabling this HTML also gets auto formatted. It's a built-in capability so no additional extensions needed :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM