Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opposite of "wrap selection with tag" in Sublime Text 2

Tags:

sublimetext2

Is there a smarter way of removing the tag (let's say using HTML) around a selection in Sublime text 2?
For example if I have a span tag around some text and want to remove both the start and end of this tag (and leave the text inside untouched)...
Or alternative - remove current tag and it's corresponding end tag?

like image 494
Priednis Avatar asked May 21 '13 11:05

Priednis


1 Answers

The Emmet plugin (once called Zen Coding) can do what you want. Install it and press Ctrl+Shift+; within a tag's contents to unwrap the tag.

like image 118
angerson Avatar answered Oct 16 '22 06:10

angerson