4 ms·
If all the variables are 'a' then how do you find the one that's yours?
by dalore 11y ago
If all the variables are 'a' then how do you find the one that's yours?
- dllthomas 11y agoThat's why an editor that actually understands the language can do better. That said, this is also where the scope consideration comes into play. If something is used in 100 different lines, 300 lines apart across 3 files, then of course naming it 'a' is crazy. If something is only in scope over 5 or 10 lines, then you simply restrict your search to those lines (either explicitly with marks, line numbers, or pattern bounds; or implicitly by exiting the search when it gets to a region you don't care about - find-and-replace in vim has a "confirm" option).