更改文本装饰样式以匹配Visual Studio Code中的匹配标签

时间:2018-09-10 08:33:51

标签: html css visual-studio-code atom-editor

我已经更改了highlight-matching-tag扩展的Visual Studio Code设置,以便在html的开始和结束标记中添加下划线,如下所示:

"highlight-matching-tag.style": {
        "textDecoration": "underline"
    }

这里是result。样式将连同其所有属性一起应用于整个开始标签。

是否可以将样式更改为仅在开始标记下划线,而不能像我们在Atom编辑器中那样在样式下划线?

这是我要完成的result

1 个答案:

答案 0 :(得分:0)

这将实现您想要的:

   "highlight-matching-tag.styles": {
        "opening": {
            "name": {
                "underline": "#8854d0",
            }
        },
        "closing": {
            "name": {
                "underline": "#8854d0"
            }
        }
    },