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.
<div>
<Header />
<main>
<Article />
<Sidebar />
<Comments />
</main>
<Footer />
</div><div>
<Header />
<main>
<Article />
<Sidebar />
<Comments />
</main>
<Footer />
</div>Desgruda can be triggered in two ways:
- Keyboard Shortcut: Press
Ctrl+D G(Windows/Linux) orCmd+D G(Mac) while editing a file - 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
- .tsx
- .jsx
- 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.
Found a bug or have a feature request? Please open an issue on the GitHub repository.
This extension is licensed under the MIT License.