By holding the Ctrl button on the keyboard, it’s possible to move the cursor over whole words (Ctrl + ←, Ctrl + →), select over whole words (Shift + Ctrl + ←, Shift + Ctrl + →), backspace whole words (Ctrl + Bksp), and forward-delete whole words (Ctrl + Del). This is very useful! But it’s made for normal writing where words are separated by spaces, not programming where words are often only separated by a capital letter.
Feature request:
Instead of moving over whole blocks of word characters, stop before a case change when going to the right, and after a case change when going to the left. This will make the Ctrl modifier for movement work better for programming, specifically in cases where text is in camelCase or PascalCase.
I can see this being pretty bad, too. Having to select just a word in a variable name, property, etc. is pretty rare. I didn’t really think about that when I made the post, as I had just tried to select part of a variable/property/whatever and it (somehow unexpectedly) selected the whole thing.
No other IDE or text box does this, I’d consider this ‘feature’ broken behaviour.
I never want to select Stuff in Thing:DoStuff(); I always want to select DoStuff. What’s the use of selecting half a variable name? ‘Words’ are irrelevant in a programming context.
I agree. I hadn’t put a whole lot of thought in before making this suggestion. This is only rarely needed when a typo is made in a long name or when there’s many similar names, which is what happened to me right before suggesting this.
If the script editor was more extendable and modifiable then I would try to add it in as a separate thing with similar keybinds.