VSCode是否具有关闭当前标记的快捷方式,即“alt +”。 “在Sublime Text 3中?

问题描述 投票:0回答:1

我想在Sublime Text 3中,当你使用“alt +。<period>”时,在下面的“shortcut here”中,自动放置结束标记</ ul>。 VSCode是否具有相同功能的快捷方式?

<ul>
    <li></li>
    <li></li>
    <li></li>
//shortcut here

已为VSCode安装了扩展“Sublime Text Keymap and Settings Importer”。

谢谢!

visual-studio-code vscode-settings
1个回答
0
投票

你总是可以打开Auto Closing Tags

导航到VSCode中的设置,键入关闭的最后打开和扩展名,单击HTML,您可以启用/禁用HTML标签的自动关闭。通过这样做,一旦你键入第一个标签并按Enter键,它会自动添加结束标签.enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.