Box-Of-Hats / Bem-VSCode-Extension

A VSCode extension for helping with inserting BEM (Block-Element-Modifier) classes.
BSD 3-Clause "New" or "Revised" License
29 stars 5 forks source link

Possible improvement: Generate the classes in order of appearance in the HTML. #44

Closed macakronos closed 3 years ago

macakronos commented 3 years ago

Hello, thank you for your excellent contribution.

I have a possible improvement proposal: Generate the classes in order of appearance in the HTML.

Currently it generates the classes but out of order, which in my opinion is better to read them in the order of appearance in the HTML, since it helps to have the file better organized. Currently what I do is order them manually. I attach a small example of what I am talking about.

Thanks for everything.

HTML CSS

Box-Of-Hats commented 3 years ago

Thanks again for the detailed suggestion :)

This should also already be available if you adjust the setting bemHelper.sortGeneratedStylesheets to false.

Give that a try and let me know if you're still having issues

macakronos commented 3 years ago

Thank you very much, there it was... hahaha