this post was submitted on 30 Aug 2023
7 points (100.0% liked)

VS Code

991 readers
1 users here now

founded 2 years ago
MODERATORS
 

Hi, does anyone know how to accomplish this? So far my workaround has been wrapping them in pre tags.

Thanks in advance!

top 4 comments
sorted by: hot top controversial new old
[–] Lodra@programming.dev 2 points 2 years ago (1 children)

That must be controlled by a formatter. Which one are you using for html files?

[–] TheCee@programming.dev 1 points 2 years ago (1 children)

Hi, I'm using the one that is built-in.

[–] Lodra@programming.dev 2 points 2 years ago (1 children)

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.

[–] TheCee@programming.dev 1 points 2 years ago

Thanks, might be worth a try.