Skip to main content

html-formatting

automate HTML formatting to ensure that every HTML element begins on a new line and that long lists of attributes within an element wrap at a defined character limit without each attribute being forced onto a separate line.

VS Code's visual word wrap feature (Alt+Z

htmlWhitespaceSensitivity set to "ignore", could potentially influence newline behavior around elements.

Prettier generally places block-level elements on new lines by default, options like --preserve-newlines could be relevant, though it might affect all existing line breaks.