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

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

我已经更改了 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/

相关文章:

c# - 如何在本地主机上打开 txt 文件并更改内容

visual-studio-code - vscode扩展,设置window.activeTextEditor

fonts - 如何为 Visual Studio Code 设置字体连字?

javascript - 仅在第一次加载时覆盖页面

html - Angular 内容不允许背景扩展

javascript - 在 VS Code EADDRINUSE 错误上调试 Node.JS

javascript - 单击行时添加图像(<li> 标记)

javascript - 单击时切换文本内容。出于某种原因需要点击 2 次?

html - 基于数组值的 ngStyle 表

javascript - 缩短重复功能