【问题标题】:How to set up VS Code editor for BEM features in Emmet?如何在 Emmet 中为 BEM 功能设置 VS Code 编辑器?
【发布时间】:2018-11-18 11:08:06
【问题描述】:

https://pawelgrzybek.com/bem-with-emmet/

如何应用此首选项? 如果我将其粘贴(看图片) - 没有任何变化,不起作用。

{
   "bem.elementSeparator": "__",
   "bem.modifierSeparator": "--",
   "bem.shortElementPrefix": "_",
   "lorem.defaultLang": "ru",
}

【问题讨论】:

    标签: visual-studio-code vscode-settings emmet


    【解决方案1】:

    需要在设置文件中指定(ctrl+,打开用户设置)这样:

    【讨论】:

    • 你是否也包含了这个:"emmet.syntaxProfiles": { "html": { "filters": "bem" } },
    • 是的,我做到了。你可以在我之前评论的图片上看到它。
    猜你喜欢
    • 1970-01-01
    • 2023-02-07
    • 2020-05-31
    • 2019-05-25
    • 2017-07-08
    • 1970-01-01
    • 2020-10-03
    • 1970-01-01
    • 2019-07-18
    相关资源
    最近更新 更多