The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,225 other subscribers

Delphi: turn off column or line block selection mode – via: Default IDE Shortcut Keys; Delphi Programming

Posted by jpluimers on 2015/07/30

The Default IDE Shortcut Keys – Delphi Programming was a good starting point to find out how to disable column or line blocks.

Since the table there is incomplete (even the Embarcadero documentation is wrong as some shortcuts can turn on and off a mode), here are the relevant shortcuts keys:

Ctrl + O + C Turns on/off blockcolumn selection mode Delphi 5 and up
Ctrl + O + K Turns on/off block selection mode Delphi 5 and up
Ctrl + O + L Selects current line (and turns off block selection mode) Delphi 5 and up

This is especially useful when the block selection is stuck (this happens every now and then: it’s a known bug).


6 Responses to “Delphi: turn off column or line block selection mode – via: Default IDE Shortcut Keys; Delphi Programming”

  1. Brian Long said

    I didn’t find Ctrl+O+C worked for turning it off, but have always used Ctrl+O+K
    BTW, big collated list of shortcuts over at that includes these.

  2. woutervannifterick said

    It “almost” works like other popular editors:

    When you hold alt while you select, you’ll get block mode. Selecting some text without holding alt switches back to line mode.

    That’s when you use the mouse only.

    With the keyboard you can also block-select by holding alt+shift+cursorkeys, but it switches you to block mode permanently.
    A “normal” keyboard-only selection (without alt) won’t switch the mode back to line selection, which I find quite annoying about the Delphi code editor.

    If I were to implement this, I wouldn’t create “modes”. I’d just allow two ways to select, by either holding alt or not.

  3. David M said

    So if Ctrl+O+C turns off column selection mode, how do you turn it on? (Alt-drag? But how with the keyboard?)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: