heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.38k stars 46 forks source link

Disable Sorting while typing #118

Open Ali-Hussein-dev opened 3 years ago

Ali-Hussein-dev commented 3 years ago

Problem While typing classes if not enough fast, the classes get concatenated, class order breaks, which is pretty annoying.

Recommended Solutions What I think could solve it is not to trigger the sorting while the cursor in the class field or a workaround for that is to sort manually with a script.

ghost commented 3 years ago

I don't know why no body is working on this, we should have a config to disable auto sorting, and sort only on save.

Please make it happen

petertriho commented 3 years ago

I never had this issue but I've since moved to just running rustywind manually

Do you guys have auto save + run on save turned on?

hjhart commented 3 years ago

My problem was that VScode was set to autosave every 500 milliseconds. Disabling that feature, and only saving on blur made headwind usable for me. This isn't an issue with headwind.

anibalsanchez commented 2 years ago

@hjhart Great tip! This issue was driving me crazy.