Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Desgruda - Separate Sibling Elements in JSX/TSX codeNew to Visual Studio Code? Get it now.
Desgruda - Separate Sibling Elements in JSX/TSX code

Desgruda - Separate Sibling Elements in JSX/TSX code

Isaac Muniz

|
3 installs
| (1) | Free
Improve code readability by automatically separating sibling JSX/TSX elements with a blank line.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Desgruda 🍃

You'll never have to work with all that "stuck together" code again.

This extension helps you improve code readability by automatically separating sibling HTML-like elements with a blank line.

Before

<div>
  <Header />
  <main>
    <Article />
    <Sidebar />
    <Comments />
  </main>
  <Footer />
</div>

After

<div>
  <Header />

  <main>
    <Article />

    <Sidebar />

    <Comments />
  </main>

  <Footer />
</div>

Usage

Desgruda can be triggered in two ways:

  1. Keyboard Shortcut: Press Ctrl+K Space (Windows/Linux) or Cmd+K Space (Mac) while editing a file
  2. Command Palette: Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and search for "Desgruda"

The extension will:

  • Parse your JSX/TSX code
  • Identify sibling elements that need spacing
  • Insert blank lines with proper indentation
  • Preserve existing spacing if elements already have blank lines between them

Supported Files

  • .tsx
  • .jsx

Known Issues

  • The extension currently processes the entire file. For very large files, this may take a moment.
  • Only formats JSX/TSX elements. Standard HTML files are not yet supported.

Contributing

Found a bug or have a feature request? Please open an issue on the GitHub repository.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft