我无法得到 <a></a>在 VS 代码中使用 emmet 时在新行中添加标签 [英] I can't get <a></a> tags in new lines when using emmet in VS code

查看:16
本文介绍了我无法得到 <a></a>在 VS 代码中使用 emmet 时在新行中添加标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When I enter a*5, I expected to get five tags in new lines. However, the five tags I got were in the same line like this.

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

How should I change my settings in VScode in order to have five tags in new lines?

推荐答案

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

It look like you need this in your settings:

"emmet.syntaxProfiles": {

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

这会将所有标签,包括 span 和其他典型的内联标签,放在它们自己的行上.没有办法将其限制为 a 标签.

That will put all tags, including span and other typically inline tags, on their own line. There is no way to restrict it to a tags.

我认为 tag_nl": true 会起作用,但没有.

I thought "tag_nl" : true would work but it didn't.

请参阅emmet syntaxProfiles.

这篇关于我无法得到 <a></a>在 VS 代码中使用 emmet 时在新行中添加标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆