VSCode HTML如何启用自动关闭标记和标记建议
在我的VSCode中,当我使用html时,当我放置新标记时,它不会给我标记名称的建议。另外,在我写作时如何使用>自动关闭标记?我已经安装了HTML代码片段、锅炉、Intellisense自动完成标记扩展 下面是在setting.json中编写的内容VSCode HTML如何启用自动关闭标记和标记建议,html,visual-studio-code,Html,Visual Studio Code,在我的VSCode中,当我使用html时,当我放置新标记时,它不会给我标记名称的建议。另外,在我写作时如何使用>自动关闭标记?我已经安装了HTML代码片段、锅炉、Intellisense自动完成标记扩展 下面是在setting.json中编写的内容 "python.pythonPath": "C:\\ProgramData\\Anaconda3", "editor.renderWhitespace": "boundary", "editor.tabCompletion": "on", "aut
"python.pythonPath": "C:\\ProgramData\\Anaconda3",
"editor.renderWhitespace": "boundary",
"editor.tabCompletion": "on",
"auto-close-tag.enableAutoCloseTag": true,
"auto-close-tag.fullMode": true,
"auto-close-tag.SublimeText3Mode": true,
"html.format.indentInnerHtml": true,
"html.format.endWithNewline": true,
"html-css-class-completion.enableEmmetSupport": true,
"html.suggest.html5": true
顺便说一句,您可以使用Emmet,只需键入例如
div
,按Tab键,您就会得到一个
。它还附带了一些很酷的东西,例如,您可以在一行中创建一个包含一些lorem ipsum文本的整个表格。Emmet内置于VS代码中,因此您不必安装任何东西,但它不会对body和div这样简单的东西给出建议(对于div,它会改为divisibleby)。另外,按tab键不适用于获取Yeah,可能对于div,您只需使用.class
,它将生成一个
。另外,其他扩展可能优先于Emmet。