Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Tailwind Fold OpinionatedNew to Visual Studio Code? Get it now.
Tailwind Fold Opinionated

Tailwind Fold Opinionated

ben14

|
1 install
| (0) | Free
Improves code readability by folding class attributes with opinionated defaults
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tailwind Fold

With Tailwind Fold Opinionated, you can say goodbye to messy and hard-to-read HTML code. This extension helps improve the readability of your code by automatically "folding" long class attributes.

Features

Max_length

Format comparison

Hover pop-up sorted css

Format comparison

Extension Settings

This extension contributes the following settings:

  • tailwind-fold.autoFold: Enable/disable automatic class attribute folding
  • tailwind-fold.foldStyle: Defines folding style
  • tailwind-fold.unfoldIfLineSelected: Unfolds class attributes if line is selected
  • tailwind-fold.showTailwindImage: Show/hide the tailwind logo infront of folded content
  • tailwind-fold.foldedText: Text to show when class attributes are folded
  • tailwind-fold.foldedTextColor: Color of the text when folded
  • tailwind-fold.foldedTextBackgroundColor: Background color of the text when folded
  • tailwind-fold.unfoldedTextOpacity: Opacity of unfolded class attributes
  • tailwind-fold.supportedLanguages: Array of languages the extension is enabled for
  • tailwind-fold.foldLengthThreshold: Specifies the minimum number of characters required for a section to fold
  • tailwind-fold.foldMaxLength: Maximum length of content to fold completely (0 = auto-detect from Editor: Word Wrap Column - 10). Content longer than this will be shown with reduced opacity instead of being folded, to avoid blank lines from soft wrap
  • tailwind-fold.fadedTextOpacity: Opacity of text when faded (for long classes that exceed foldMaxLength)

Note

This extension folds all class attributes, even if there are no tailwind specific attributes.

Credits

This project is forked from tailwind-fold by stivoat, with opinionated defaults and additional features.

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