I’ve found topics from 4 years ago asking for this, and the answer then was it can’t be done, so I wanted to find out if this is possible yet.
Within a given file, can I globally rename a local variable? When I select the variable, all instances of the variable have boxes around them, so clearly Sublime distinguishes that variable from other text that happen to contain the same name, but there does not appear to be a way to select only the variable everywhere it appears and rename it everywhere. CTRL+D selects everything that has the same text, so if the variable name is ‘a’ to start with, it finds way too many matches. Turning on ‘whole word’ match doesn’t solve this either.
This is such a basic and prevalent need, I’m hoping there is a solution by now.