Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 text selection within tags

Tags:

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

<div>This is the text I want to Select</div> 

I've done some searching on google, the st2 site and here, but can't find this shortcut. I know command + L will grab the entire line.

Thanks in advance.

like image 350
certainstrings Avatar asked Mar 07 '13 19:03

certainstrings


People also ask

How do I select multiple text in Sublime Text?

Alt+F3 gives a really simple way to do find and replace: Use it to select all occurrences of the current word or selection, then just start typing to replace or edit them all at once.

How do I get multiple cursors in Sublime Text?

While you can place multiple text cursors in Sublime Text with Cmd–Click (Mac) or Ctrl–Click (Windows), here's another technique that comes in handy. Hold Ctrl–Shift (Mac) or Ctrl–Alt (Windows) and hit Up or Down Arrow to place an additional text cursor above or below the current cursor.

How do I select HTML in Sublime Text?

You can select some text and then choose Edit > Tag > Wrap Selection with tag from the menu (or use the key binding you'll see when you look there) to do this.

What does Ctrl d do in Sublime Text?

Ctrl + D in SublimeText is "Quick Add Next." This appears to be equivalent to Ctrl + B in Brackets, which is "Add next match to Selection" on the Find menu.


1 Answers

Try + Shift + a

I think that's the correct keybinding in OSX. If not, look for the expand_selection command in the default keymap with the arguments {"to": "tag"}

For windows/nix: Try Ctrl + Shift + a

like image 132
skuroda Avatar answered Sep 28 '22 03:09

skuroda