This extension collapses lengthy HTML class attributes to increase code readability, especially when working with utility frameworks like Tailwind CSS. Say goodbye to file clutter and welcome a more streamlined coding experience.
Download from the Visual Studio Marketplace.
Instantly hide all class attributes by using Ctrl+R, Ctrl+H or by clicking Collapse All Classes under the Tools menu.
Extension settings can be located under Tools > Options > Class Hide.
Automatic collapse
: Automatically collapse classes on file openEnable class hiding
: Enables or disables class hidingMinimum class length
: The minimum text length within class="" to enable collapsingPreview
: The text to display over the truncated section. Can be set toEllipses
, showing...
, orTruncate
, which will display a shortened version of the class attributePreview length
: The maximum number of characters shown in preview when classes are hidden; only takes effect whenPreview
is set toTruncate
Delimiter
: Text after the first instance of this delimiter will be hidden. If the delimiter is not found, the entire class will be collapsed.
If you run into any issues or come up with any feature suggestions while using this extension, please create an issue on the GitHub repo.