Sublime Forum

Expand Selection to Tag removed? Sublime Text 4

#1

Hi,
I just upgraded to Version 4 and now need to get back because “Expand Selection to Tag” Strg + Shift + A is now “Expand Selection” which just expands the selection to one word.

Is there a way to change the function back to “tags”?

I found this code in the key bindings. Is there a way to change smart to tags? “Tags” is not working.

{ “keys”: [“ctrl+shift+a”], “command”: “expand_selection”, “args”: {“to”: “smart”} },

Thanks!

0 Likes

#2

it’s still there.

	{ "keys": ["ctrl+shift+a"], "command": "expand_selection", "args": {"to": "tag"}, "context":
		[
			{ "key": "selector", "operator": "equal", "operand": "text.html - source", "match_all": true }
		]
	},

The problem is where you use it?

0 Likes

#3

Thanks!

I used it in html and xml files without a problem. Do I need to change the source text.html?

Why are there two entries with “ctrl+shift+a”? Just want the sublime text 3 feature back.

0 Likes

#4

That depends on your needs. Only you know. :man_shrugging:

See context. https://www.sublimetext.com/docs/key_bindings.html#context

0 Likes

#5

xml is indeed missing in the binding’s context.

Already logged at:

0 Likes

#6

This solves my issue. Thank you!

0 Likes