Sublime Forum

Expand Selection to Scope -- strange behavior on OSX

#1

Create a new tab, set its language to PHP and add the following two lines:

<?php foreach ($x as $y) { foo($y); }
Now position the cursor on the second “y”. Invoke “Expand Selection to Scope” (i.e., Super+Shift+Space) multiple times and look at what happens to the selection. It starts off nicely and selects ever larger areas, until it selects the whole curly braces part.

But the next expansion doesn’t expand the selection, it moves it! It selects the “($x as $y)” part!

Is this intentional?

0 Likes