Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime text 2 : select tags with all content in it

I'm looking for a keyboard shortcut to select tags and all text between tags, such as:

<div> 
Hello World 
</div>

Consider above html code when I place cursor between div tags and press ctrl+shift+a it select all content that is Hello World but not div tags.

like image 721
Mystery Avatar asked Nov 25 '14 16:11

Mystery


1 Answers

If you hit CtrlShiftA once while your cursor is in the text, it will select all the text. Hit CtrlShiftA again, and it will select the tags. Keep hitting it, and the selection will keep expanding outwards.

like image 182
MattDMo Avatar answered Sep 21 '22 09:09

MattDMo