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

Support for custom element and modifier separators #5

Closed witheroux closed 5 years ago

witheroux commented 5 years ago

I was wondering if it would be possible to add a setting to have custom element and modifier separators. Our templating engine doesn't respond well to having -- inside an HTML comment. When we go about commenting entire blocks of code with the normal BEM separators, we end up with errors. To make life easier for ourselves, we separate modifiers with a different separator. I wouldn't mind making my own PR if you don't have the time.

Box-Of-Hats commented 5 years ago

I've just added support for this so you'll be able to set your separators using the settings bemHelper.modifierSeparator and bemHelper.elementSeparator.

Thanks for your suggestion and for helping to make bemHelper better :)