Sublime Forum

Select Balanced Tag Inward/Outward?

#1

I can’t seem to find a plugin or the ability to select "matching’ paired tags.
For example.
If I had

title

Lorem

and i put my cursor somewhere on the div wrapper line, I’d like to be able to select its closing tag and EVERYTHING in between. This makes for finding closing and indenting blocks of code very easy.

anyone?

0 Likes

#2

Selection > Expand Selection > Expand Selection to Tag. The command is already built into ST2. You may need to press it twice to select the tags as well.

0 Likes

#3

Thank you very much.
I did see this but I got hung up on selecting it twice. When I hit the shortcut for it, it would select everything inside of my selected tags but not the tags in which I placed my cursor.

Once I hit it again, it them wrapper my selection to include the tags my cursor was on. Exactly what I wanted :smile:
thanks again!

0 Likes