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

when "bemHelper.modifierSeparator" setting change, generateStylesheet can't work properly #40

Open mirages opened 3 years ago

mirages commented 3 years ago

when I set "bemHelper.modifierSeparator" to "_", autofix and generateStylesheet can't work properly. Is there any restrictions?

Box-Of-Hats commented 3 years ago

Hi, there is a restriction that you won't be able to use the single - or _ characters as separators as they are used for kebab-case and snake_case classnames. If you instead use a double __ or -- then the extension will work as expected