Sublime text 2 : select tags with all content in i

2019-06-18 05:44发布

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.

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-06-18 06:02

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.

查看更多
登录 后发表回答