search

Home  >  Q&A  >  body text

How to select and delete HTML elements (tags and content) in VS Code?

First, there is an "Emmet: Remove Tag" function, but it will only remove the wrapper for a specific tag. It does not delete the entire element including its children.

I'm looking for the same operation to be able to remove child elements at the same time. This can save a few seconds for people who frequently edit HTML.

In the example below, I want to remove the entire

P粉573809727P粉573809727489 days ago886

reply all(1)I'll reply

  • P粉005105443

    P粉0051054432023-09-20 00:32:06

    Maybe this extension expand-region can solve the problem.

    reply
    0
  • Cancelreply