Something is wrong with Emmet in Visual Studio Code

前端 未结 4 1925
再見小時候
再見小時候 2021-02-05 11:54

After the last update, Emmet is working in some different (incorrect) way.

If I\'m typing usual code in Emmet syntax like:

.row>.col*2

4条回答
  •  心在旅途
    2021-02-05 12:31

    I just ran into this same problem, but I have a slightly different reason for it. Not only did I need to set triggerExpansionOnTab to true, but I also needed to set the included languages in the settings.json file.

    In my case, Emmet was not activated for blade.php files. So, I needed to add "blade":"html" within the includedLanguages section.

    Full example:

    "emmet.triggerExpansionOnTab": true,
    "emmet.includeLanguages": {
        "javascript": "javascript",
        "vue-html": "html",
        "php": "html",
        "blade": "html",
    }
    

    Adding this might also help:

    "emmet.useNewEmmet": true,
    

提交回复
热议问题