Hacker News new | ask | show | jobs
by colejohnson66 2356 days ago
Why does VS Code auto add the closing <p> tag when you open them then? It doesn’t do it for, say, <img>. Bug?
1 comments

Feature. <p> tags can function as containers for text and other elements, and VS Code can't distinguish between <p>, with the special handling, and <div>, without it.

Okay, to be fair, that does sound like a bug.