Show HN: Tailwind Nested VSCode Extension
6 points| rpeshkov | 1 year ago |marketplace.visualstudio.com
Pretty much it works in way that you can expand classes into multiple lines with simple hierarchy, do changes and then return it back to a single line.
The extension is in really early stage and definitely there will be a ton of issues at the moment.
ska-dev|1 year ago
I share that sentiment. I even "invented" something called "selectors" [1] which is a UI to handle all the Tailwind variants.
I popped this monstrosity of a Tailwind class in and your extension worked wonderfully in creating a tree of it: [2]
How ever when I collapsed it back to a single line something went wrong and it increased the length of the classes by ~15x creating this: [3]
[1] https://sinukoduleheabi.ee/docs/ska-blocks/selectors/
[2] https://pastebin.com/raw/Nk3xBHfw
[3] https://pastebin.com/raw/bKLdTYjD (Edit: pastebin removed it for some reason)
rpeshkov|1 year ago
I tried it to see what's going on. There are 2 issues that I need to fix:
- Variables. It splits incorrectly
- Arbitrary variants are split incorrectly as wellgnomodromo|1 year ago
khalidx|1 year ago
You could also add a collapse toggle ">" to the classname line that will open the focus view (instead of the keyboard toggle). I think the VSCode API supports it.
rpeshkov|1 year ago
huodon|1 year ago
rpeshkov|1 year ago