在 VS 代码中使用 emmet 时,我无法在新行中获取 <a></a> 标签

问题描述

enter image description here

当我输入 a*5 时,我希望在新行中得到五个标签。然而,我得到的五个标签是这样的。

enter image description here

我应该如何更改 VScode 中的设置以便在新行中有五个标签

enter image description here

解决方法

您的设置中似乎需要这个:

"emmet.syntaxProfiles": {

  "html": {
    "inline_break": 1
  },},

这会将所有标签(包括 span 和其他通常的内联标签)放在自己的行上。无法将其限制为 a 标签。

我以为 "tag_nl" : true 会起作用,但没有。

emmet syntaxProfiles