删除标签

Quickly removes tag, found by “Match Tag Pair” from current caret position, and adjusts indentation.

快速删除标签,并调整缩进。这里的标签是在插入符所在位置由 匹配标签 功能查找的标签。

  1. <textarea class="movie-def">
  2. &lt;body&gt;
  3. &lt;div |class="wrapper"&gt;
  4. &lt;h1&gt;Title&lt;/h1&gt;
  5. &lt;p&gt;Lorem ipsum dolor sit amet.&lt;/p&gt;
  6. &lt;p&gt;Officiis animi consequuntur iure.&lt;/p&gt;
  7. &lt;p&gt;Ea asperiores aperiam non necessitatibus?&lt;/p&gt;
  8. &lt;p&gt;Expedita iusto cupiditate eum esse.&lt;/p&gt;
  9. &lt;/div&gt;
  10. &lt;/body&gt;
  11. ~~~
  12. tooltip: Place caret somewhere “Match Tag Pair” action can find tag definition
  13. wait: 1000
  14. run: emmet.remove_tag ::: “Remove Tag” (Cmd-K)
  15. </textarea>

“Remove Tag” action uses “HTML Matcher” internally so it may work in non-HTML syntaxes too.

这个功能在内部调用 匹配标签 功能,所以非 HTML 语法也可以用。