Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime text 2 : select all text within html tags

How can i select all the contents within matching html tags in sublime text 2. I've tried "expand selection to brackets" but it doesn't work. For ex.

<div class="container">
  <p>
    Text goes here...
  </p>
  <p>
    Text goes here...
  </p>
  <p>
    Text goes here...
  </p>
  more content...
</div>

I want to select all the content of div.container

I've found a trick though

What i've tried is just do "cold folding" then just select all of it. but i hope there's a shortcut or build for it.

like image 528
chanHXC Avatar asked Mar 17 '13 20:03

chanHXC


1 Answers

Get Emmet, “the essential toolkit for web-developers”, it can match tag pairs like that.

Then place the cursor anywhere inside of the div, and keep pressing CTRL+, to expand the selection, until the div’s content is selected.

like image 104
poke Avatar answered Oct 26 '22 08:10

poke