Visual Studio Code 与 html 标签不匹配 [英] Visual Studio Code not matching html tags

查看:37
本文介绍了Visual Studio Code 与 html 标签不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 代码编写 html,但它没有识别当前选定的结束标记的功能.我怎样才能达到同样的目标?

I am using visual studio code for writing html but it doesn't have the feature of identifying closing tag for the current selected one. How can I achieve the same?

这是它在 VS Code 上的样子:

Here is how it looks on VS Code:

你能建议任何扩展或我怎样才能做到这一点?VS 代码 1.7.1

Can you suggest any extension or how can I achieve this? VS Code 1.7.1

推荐答案

安装这个扩展

highlight-matching-tag

并将 settings.json 更改为

"highlight-matching-tag.leftStyle": {
    "borderWidth": "0 0 0 3px",
    "borderStyle": "dotted",
    "borderColor": "red",
    "borderRadius": "5px"
 },

这篇关于Visual Studio Code 与 html 标签不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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