html - 在 Visual Studio Code 中更改匹配标签的文本装饰样式
问题描述
我更改了 Visual Studio Code 的highlight-matching-tag扩展中的设置,为 html 中的开始和结束标签添加下划线,如下所示:
"highlight-matching-tag.style": {
"textDecoration": "underline"
}
这是结果。该样式将应用于整个开始标签及其所有属性。
是否可以像在 Atom 编辑器中那样将样式更改为仅对开始标签而不是其属性进行下划线?
这是我试图完成 的结果。
解决方案
这将实现您想要的:
"highlight-matching-tag.styles": {
"opening": {
"name": {
"underline": "#8854d0",
}
},
"closing": {
"name": {
"underline": "#8854d0"
}
}
},
推荐阅读
- javascript - 在javascript中使用多个字段排序?
- r - 如何格式化表格以包含条形周围的轮廓
- webpack - 类型错误:react_router_es_Router__WEBPACK_IMPORTED_MODULE_1__.default.computeRootMatch 不是函数
- vb.net - 如何将多个按钮分组为“一个”
- reinforcement-learning - 如何在 OpenAI 的健身房中注册自定义环境?
- c# - 我想要帮助如何从 http json 的响应中获取文本,这里是请求的来源
- odata - Dynamics365 操作:使用数据实体创建/更新时间戳
- c++ - 如何在 docker 中使用静态 opencv 库编译 C++ 应用程序
- python - 来自 2D 向量的协方差矩阵 - Tensorflow,Numpy
- python - 100 万个整数 GroupBy - 出现次数