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.
Richard Inglis
source share