解决方案
修改vscode配置中的auto-close-tag.activationOnLanguage。
默认配置是下面这个,里面有typescript,把typescript和typescriptreact删除掉即可
"auto-close-tag.activationOnLanguage": [
"xml",
"php",
"blade",
"ejs",
"jinja",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"plaintext",
"markdown",
"vue",
"liquid",
"erb",
"lang-cfml",
"cfml",
"HTML (Eex)"
]
标签:activationOnLanguage,typescript,vscode,auto,tag,close
From: https://www.cnblogs.com/duanlvxin/p/17231779.html