Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stivoat/tailwind-fold
Visual Studio Code extension that improves code readability by folding long class attributes
https://github.com/stivoat/tailwind-fold
Last synced: 3 months ago
JSON representation
Visual Studio Code extension that improves code readability by folding long class attributes
- Host: GitHub
- URL: https://github.com/stivoat/tailwind-fold
- Owner: stivoat
- License: mit
- Created: 2022-12-21T01:14:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T09:47:26.000Z (6 months ago)
- Last Synced: 2024-08-01T19:52:37.471Z (6 months ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=stivo.tailwind-fold
- Size: 7.55 MB
- Stars: 104
- Watchers: 3
- Forks: 18
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- my-awesome-list - tailwind-fold
README
# Tailwind Fold
With Tailwind Fold, 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
![Folding in action](images/docs/demo.gif)
By default, automatic folding is enabled, but you can customize this behavior in the settings. Quickly toggle folding using the keyboard shortcut `Ctrl+Alt+A`
### Comparison
![Format comparison](images/docs/tailwind-fold-examples.png)
### Customizable folding styles
![Format comparison](images/docs/example_styles_folded.png)
### Customizable opacity of unfolded class attributes
![Format comparison](images/docs/example_styles_unfolded.png)
## 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## Note
This extension folds all class attributes, even if there are no tailwind specific attributes.