Select surround sound with the html tag

Is there any eclipse shortcut / trick / plugin / anything that allows me to select a section of text and surround it with an arbitrary html / xml tag when using the html editor.

Something like this text video

+7
source share
2 answers

EDIT: not sure If my Eclipse setup is the same as yours, but ...

I have an HTML editor installed, and if I switch to the Java perspective, I can use Edit -> Quick Fix and then select Surround with new element to get exactly this effect in your video. (On Mac, this is shortcut ⌘1 ).

Hope this will be helpful.

In the C ++ editor, you can try Source -> Surround With... -> Configure Templates add the tag you want.

+8
source

The following works and allows you to enter arbitrary / arbitrary tags:

  • Select the text you want to wrap.
  • Go to "Edit> Quick Fix" or press "Ctrl + 1".
  • In the new menu that appears, select "Surround with new element"

However, there is annoyance, please upvote Error 494169

Eclipse Surround Selection With HTML Tag

+3
source

All Articles