Fold away verbose HTML attributes for a cleaner editor view
HTML Attribute Folder is a lightweight JetBrains plugin that folds HTML attributes directly in the editor, letting you focus on element structure without the noise of lengthy attribute lists. It's completely non-destructive — your code is never modified. Supports HTML, XHTML, XML, JSX, TSX, DTD, and RHTML/ERB templates.
- Fold HTML attributes to reduce visual clutter
- Non-destructive — your code is never modified
- Configurable placeholder, folding method, and collapse-by-default behavior
- Toggle folding with a keyboard shortcut (
Ctrl+Alt+E) - Supports: HTML, XHTML, XML, JSX, TSX, DTD, RHTML/ERB
- Open your JetBrains IDE
- Go to Settings → Plugins → Marketplace
- Search for "HTML Attribute Folder"
- Click Install and restart the IDE
Or install directly from the JetBrains Marketplace.
Access settings via Tools → HTML Attribute Folder Settings.
| Option | Default | Description |
|---|---|---|
| Folding Method | — | How attributes are folded |
| Placeholder | ... |
Text shown in place of folded attributes |
| Collapse by Default | true |
Automatically fold attributes when a file opens |
| Attributes | (empty) | Specific attributes to fold |
- IntelliJ IDEA 2025.3+ (build 251+)
- Requires Java 21
- Works with IntelliJ IDEA Ultimate/Community and other JetBrains IDEs with XML/JS support
- tscharke for contributing
This project is licensed under the MIT License.