我已经更改了 highlight-matching-tag 中的设置Visual Studio Code 的扩展,用于在 html 中的开始和结束标记中添加下划线,如下所示:
"highlight-matching-tag.style": {
"textDecoration": "underline"
}
这是 result .该样式将应用于整个开始标记及其所有属性。
是否可以像我们在 Atom 编辑器中那样更改样式以仅对开始标记而不是其属性加下划线?
这是 result我试图完成的。
最佳答案
这将实现你想要的:
"highlight-matching-tag.styles": {
"opening": {
"name": {
"underline": "#8854d0",
}
},
"closing": {
"name": {
"underline": "#8854d0"
}
}
},
关于html - 更改 Visual Studio Code 中匹配标签的文本装饰样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52253878/