Sublime Text 2 text selection within tags
10,174
Solution 1
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
Solution 2
It only works if you have a language specified e.g under view > syntax. If it's just showing as a plain text file it doesn't do anything.
Author by
certainstrings
Updated on June 10, 2022Comments
-
certainstrings almost 2 years
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.
-
certainstrings about 11 yearsExactly what I was after. Thank You.
-
knownasilya about 11 years
ctrl + shift + a
for non-Mac users. Press it a second time to select the tags as well. -
skuroda over 9 years@JitendraVyas In the ST console, enter
sublime.log_commands(True)
and press the keybinding. What comes up? Alternatively, you can look under theSelection
menu entry for what the keybinding is on your system. If nothing is listed, or it still isn't working, it's possible a plugin may be using the same key binding. The above mentioned log_command step should help gain some insight if that is the case.