Did you know. . .
So Nick Hodges posted a Did you know in response to Steve Trefethen’s challenge. I thought I would get in on the act.
I was actually unfamiliar with the keyboard shortcuts Nick shared. I am an old school keyboard shortcut kind of guy and still use the [CTRL]+[K] shortcuts for the most part (go WordStar!), so I use the [CTRL]+[K] + [I] and [CTRL]+[K] + [U] equivalents instead.
Did you know you can use [CTRL]+[K] + [N] to convert the selection to UPPERCASE? and [CTRL]+[K] + [O] to convert it to lowercase?
There may be a non [CTRL]+[K] alternative, but I don’t know it. What would be slick is if there was a “correct case” conversion that would convert it to the case it was declared in. I’ve seen plug-ins that do that though.
August 31st, 2007 at 2:39 pm
Long live the wordstar keybindings!!!!
August 31st, 2007 at 3:08 pm
“if there was a “correct case” conversion that would convert it to the case it was declared in”
I am not sure exactly what you mean, but you can use the Ctrl-Space for code completion. Even if you type the start of an identifier all uppercase, then code completion will replace your typing with the original casing.
August 31st, 2007 at 3:22 pm
You are correct Jan. What I was thinking of is if I selected it like with the Upper and lower case conversions. With the [CTRL]+[Space] you need to be past the middle of the identifier. My Delphi is a tad rusty unfortunately. I will tell you that Delphi is much better then Visual Studio C# for this. With Visual Studio, if you are in the middle of an identifier and use [CTRL]+[Space] you get the identifer inserted into it and end up with garbage.
September 1st, 2007 at 8:53 am
GExperts has the feature you are looking for. It auto-corrects spelling according to the first reference within the unit