TheCee@programming.dev to VS Code@programming.devEnglish · 1 year agoHow to keep VSCode/VSCodium from formatting svg tags in HTML filesmessage-squaremessage-square4fedilinkarrow-up18arrow-down10file-text
arrow-up18arrow-down1message-squareHow to keep VSCode/VSCodium from formatting svg tags in HTML filesTheCee@programming.dev to VS Code@programming.devEnglish · 1 year agomessage-square4fedilinkfile-text
Hi, does anyone know how to accomplish this? So far my workaround has been wrapping them in pre tags. Thanks in advance!
minus-squareTheCee@programming.devOPlinkfedilinkEnglisharrow-up1·1 year agoHi, I’m using the one that is built-in.
minus-squareLodra@programming.devMlinkfedilinkEnglisharrow-up2·1 year agoI took a look in my vscode config. I didn’t see any settings like that in the default html formatter. My best guess it’s not possible. If you’re open to it, you could explore alternative formatters for html. Prettier is probably the most well known in general. But there are a bunch.
minus-squareTheCee@programming.devOPlinkfedilinkEnglisharrow-up1·1 year agoThanks, might be worth a try.
Hi, I’m using the one that is built-in.
I took a look in my vscode config. I didn’t see any settings like that in the default html formatter. My best guess it’s not possible.
If you’re open to it, you could explore alternative formatters for html. Prettier is probably the most well known in general. But there are a bunch.
Thanks, might be worth a try.