A VS Code extension that visually collapses verbose HTML/JSX class attributes into an inline ellipsis (...), while preserving full discoverability via hover tooltips and enabling seamless click-to-edit workflows.
Features
Visual Collapse: Replace the value of class (HTML) and className (JSX/TSX) attributes with ... when the number of classes exceeds a configurable threshold (default: 3)
Hover Tooltip: When hovering over the collapsed ..., display a tooltip showing the full attribute value with CSS syntax highlighting and an "Edit Attribute" command link
Click-to-Edit: Clicking on the collapsed ... allows you to edit the original attribute value
Smart Expand on Cursor: When your cursor intersects a collapsed attribute range, it temporarily expands (removes decoration) and re-collapses automatically when you move away
Edit Preservation: When editing an attribute, it remains expanded during the entire editing session and only collapses after you move the cursor away
Usage Example
Before
<div class="op1 op2 op3 op4 op5"></div>
After (visual only)
<div class="..."></div>
Commands
Edit Collapsed Attribute: Opens an input box to edit the class attribute value