Possible Duplicate:
How to select variables (not text) with the same name?
$project_id = $this->user_model->get_project_id();
$project_id = 'yo';
If I double click the first instance of project_id
, it'll highlight it, then pressing ctrl+d will select project_id
inside of get_project_id
ctrl+d again will select project_id
on line 2.
Or if I put my cursor on the first project_id
, then hit ctrl+d, it'll select it for me. BUT, the second time I hit ctrl+d, it'll skip get_project_id
and go to line 2.
I hope someone could follow that. Is this a bug, or a feature? Why would I want it to do this?
I don't think it's a bug.
If you select a string, CTRL+D will search for every occurrence of that string, even if it is a partial of another string.
If you put your cursor on a string, CTRL+D will look for the exact occurrences of that string.
I find this useful, even if it was a bug. :)
This behavior is a bug. You can report it at Sublime Text's UserEcho forum.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With