Mystery
Mystery

Reputation: 173

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.

Upvotes: 9

Views: 5090

Answers (1)

MattDMo
MattDMo

Reputation: 102852

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.

Upvotes: 19

Related Questions