4 ms·
Many text editors view dashes as word separators, so double clicking on a variable name with dashes (to have the editor highlight all places it's being used) w
by okhudeira 14y ago
Many text editors view dashes as word separators, so double clicking on a variable name with dashes (to have the editor highlight all places it's being used) will only highlight the word you double clicked on and not the entire variable. This is also the case when moving the cursor by holding command/control and using the arrow keys, the dashes are considered separate words.
For that reason, I prefer using camel case.
What's interesting is underscores are not considered word separators in many text editors.