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.

4 Responses to “Did you know. . .”

  1. Xepol says:

    Long live the wordstar keybindings!!!!

  2. Jan says:

    “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.

  3. Jim says:

    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.

  4. Ben says:

    GExperts has the feature you are looking for. It auto-corrects spelling according to the first reference within the unit