Closed AndrewBogdanovTSS closed 8 months ago
Code folding is already supported
interesting. Could you explain how it can be enabled?
interesting. Could you explain how it can be enabled?
It uses the folding shortcut provided by Intellij, which you can view in the Code > Folding menu
Can you specify which exact option? I use Webstorm and I don't see anything specific to class names
I mean this, or use shortcut Ctrl+Numpad-
If I understand correctly these settings only allow to manually toggle specific portions, what I'm looking for is a default behavior. When I enter a file I would like classes to be folded by default and expanded only on click. Is there a way to fold them by default in Webstorm?
I guess there is no such aggressive folding behavior in Intellij, even if the default folding is set to true, it still requires you to manually fold after editing, or reopen the file. Is that enough?
Essentially, I want the same behavior for classes as for inline styles. When I open a file I see styles truncated like this
Sure
Will be fixed in 1.4.2, and supports some customization of folding behavior (placeholders, minimum length, default folding)
Great, thanks a lot
@re-ovo I tested the latest update and it looks awesome, thanks a lot for such a quick implementation and release. If I may add a couple of suggestions for improvement, it would be great if:
@re-ovo I tested the latest update and it looks awesome, thanks a lot for such a quick implementation and release. If I may add a couple of suggestions for improvement, it would be great if:
- clicking on the folded version would unfold only this specific item and not all in the file
- it could be a shortcut to toggle folding
- truncated text would hide classes partially, e.g. "flex pl-3 [UnoCSS]" instead of "[UnoCSS]" (don't know if this is even possible withing Intellej products) thanks again 👍🏻
Control
+ -
(When the editing cursor is on the Unocss class)
Describe the bug It's not a bug but a feature request
How it should work
Why it's needed? Reduces mental complexity in the heavily styled large files
Examples:
Before:
After: option 1:
option 2: