Search code examples
macosmonodevelopkey-bindings

How to set the Shift + End to select to the end of line?


I'm using MonoDevelop 2.6 on MacOS X Snow Leopard.

Is there a way to customize the Shift + END (and Shift + Home) key combinations to select only to the end (or beginning) of the current line, not to the end of the document?

I suppose there is an option somwhere in MonoDevelop for customizing the cursor position after an End or Home key (choosing between EoL or EoF), but I cannot find it in the keyboard settings.


Solution

  • This is how the Home and End keys work in MacOS. To expand the selection to the line start/end on MacOS, you would use Shift-Command-Left/Right. Most Mac apps (including MD) also respect the emacs commands Shift-Control-a/e.

    If you want a Windows-like behaviour, look for the commands "Expand selection to line start" and "Expand selection to line end" in MonoDevelop's Key Bindings preferences and remap them.