如何设置 VS 代码以省略 html 文件中的结束标记?

How to set up VS code to omit end tags in html files?

我在 Ubuntu/bionic 18.04 上用 VS 代码 1.38.1 编写。

我正在尝试关注 google's HTML styleguide and skip tags, specified as optional by HTML Living standard

我卸载了 HTML snippets extension 才看到它是最后一个更新 5 - 禁用此扩展,因为它的功能已被 VS Code 主 HTML 扩展吸收。 卸载它并没有改变任何东西。我的标签仍然关闭

这是 HTML 省略标签后的样子

<ul>
  <li>Moe
  <li>Larry
  <li>Curly
</ul>

<table>
  <thead>
    <tr>
      <th scope="col">Income
      <th scope="col">Taxes
  <tbody>
    <tr>
      <td>$ 5.00
      <td>$ 4.50
</table>

目前,当我在 HTML 文件中写入时,VS Code 会自动关闭我所有的标签。 我希望能够在 HTML 文件中写入标签,而 VS Code 不会自动为我关闭它们。 我要当我写

<li>

<li>

但我得到

<li></li>

而且我必须手动删除

</li>

每次都关注google's style guidelines

在 VS 2017 中设置 Options/Text Editor/HTML/Advanced -> 自动插入结束标记false 可能有帮助

在 VS Code 中,转到文件 -> 首选项 -> 设置 -> 扩展 -> HTML -> 自动关闭标签并取消选中该框。