Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you bind Home/End to act like Cmd-Left/Cmd-Right in Eclipse on Mac?

This is my first question on SO, so please be gentle :)

I've recently started a new job in which I do all of my development in PyDev on Eclipse 3.4.0 on OSX 10.6. Thus, I've been looking for a way to make Home and End act like they do on Windows (my native OS, and where I developed my muscle memory). I've mostly succeeded, but I hit one roadblock: dialogs. I figured out how to rebind Home to "Line Start" and End to "Line End" (plus their shifted equivalents), but it only seems to work in an editor context. When a dialog pops up, like to rename a file, Home and End have no effect at all. I've even set the key binding to be active when "in Dialogs and Windows", but that doesn't actually have any effect on dialogs.

Am I doing something wrong? Or is this a bug in Eclipse, or maybe PyDev?

like image 484
coredumperror Avatar asked Oct 04 '10 23:10

coredumperror


People also ask

How do you use Home and End keys on a Mac?

Press Fn–Left Arrow (Home) to scroll to the beginning of the current document; press Fn–Right Arrow (End) to scroll to the end of the document. In some apps, controls whether pressing keys in the numeric keypad enters numbers or moves the pointer.

How to go to End of line in Mac?

Jump to beginning of a line – Command+Left Arrow. Jump to end of a line – Command+Right Arrow.


2 Answers

Menu 'Eclipse' -> Preferences -> search Keys

search and edit your bindings for 'Line Start', 'Line End', 'Page Up', 'Page Down', 'Select Line Start', 'Select Line End', 'Select Text Start', 'Select Text End'

enter image description here

like image 96
Sergei Krivonos Avatar answered Oct 11 '22 02:10

Sergei Krivonos


You can do it using the Eclipse Keys preferences (as described in the other answer).

Personally, I like that mapping across all my applications, not just Eclipse. I use Keyboard Maestro for that matter. It can do a lot more. Highly recommended.

like image 28
zvikico Avatar answered Oct 11 '22 02:10

zvikico