Search code examples
delphisynedit

How to get rid off the rectangular selection in SynEdit?


I am using SynEdit installed by the Delphi GetIt Package Manager.

While working with SynEdit, sometimes I get a rectangular selection and do not know how to disable it again. Then I need to restart the program to continue working. I must have pressed some key shortcuts without noticing it.

How can I disable this feature programmatically and/or how to turn off this mode if it was accidentally turned on?

Thank you for your help.

Rectangular Selection


Solution

  • That's called column select mode. According to the source code, the hotkey to toggle it on is Ctrl+Shift+C. (It's on approximately line 879, which reads

    AddKey(ecColumnSelect, ord('C'), [ssCtrl,ssShift]);
    

    As you indicated in your comment above, you turn off that mode using Ctrl+Shift+L.