Skip to content

VS Code: Newline inserted on paste #1125

@tysongach

Description

@tysongach

Input:

<div class="">
  bar
</div>

Output:

<div class="foo
">
  bar
</div>

Expected:

<div class="foo">
  bar
</div>

Playground:

I cannot re-create this issue in the playground. It appears isolated to the VS Code extension.

Additional context:

Thanks so much for Herb! I’m having an issue when using the VS Code extension. When I paste, a newline is immediately inserted:

Screen.Recording.2026-02-05.at.13.41.41.mov

If I disable the Herb extension, the problem goes away. It doesn’t have to be inside an HTML attribute either - any paste adds a newline. Is this a bug or is there a way to disable?

Thanks again.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions