Sublime Forum

Expand selection to scope - handle variables better (PHP)

#1

Consider the following (oldschool, since working with rows) example:

$rows = $content_manager->getRows();

When I place my cursor inside $content_manager and press ctrl+shift+space (key binding for “expand selection to scope”), $content_manager gets selected. That’s perfectly fine, but if I press ctrl+shift+space again, a whole new scope - including lines - around it gets selected. It would be great if there was a way to expand my selection to the whole variable/call, so $content_manager->getRows() - including the ->getRows() part. I can’t figure out a way to do this now; maybe it already exists - I’d be delighted to know!

0 Likes