It's working just fine for me in ST2 on XP. What may have happened is your "match_selection"
setting might have gotten set to false
. Make sure
"match_selection": true
is in your preferences file (Preferences -> Settings - User
) and you should see the expected behavior.
UPDATE
After checking some other ST3 builds on a different machine, I was able to replicate the issue, however it doesn't seem to depend on whether $
is included in the "word_separators"
preference. Using the following test code:
<?php
function myFunc($var_1, $var_2) {
return $var_1 + $var_2;
}
I selected var_1
in one line, and the corresponding var_1
was highlighted with a box around it, like usual. Same with var_2
. Next, I selected $var_1
, but the other occurrence was not highlighted. This behavior was the same regardless of whether $
is defined as a word separator or not. Interestingly, even though the other $var_1
wasn't highlighted, it was still able to be selected with CtrlD, so the bug is only with the highlighting code, not the search and select code.
https://github.com/SublimeText/Issues/issues is the unofficial repository for Sublime Text issues, mainly those having to do with ST3. I'd suggest you head over there, search around to see if anyone else has noticed this, and if not to open a new issue with as much detail as possible.
Does it work in Sublime Text 2? The reason I ask is to see if it is a problem with the pre-release/beta software (off topic on SU) or is a Sublime Text * issue (on topic on SU). – nerdwaller – 2013-09-18T16:38:07.150
I just tried it on SB2 and it doesn't work. Should i remove the version from this answer? – Ithilion – 2013-09-18T16:43:52.230