Hidden in the comments of the article of Starry Hope – Mac Home and End Keys are some instructions for how to make the home and end keys work well as begin and end line in eclipse. I've done all the other tricks to make this work on my Mac, so was getting really frustrated with Eclipse. double home and double end are common key combinations for me in IntelliJ and Eclipse on Windows, so the current behaviour of going to the beginning or end of the file drives me crazy. The details of doing this differ slightly in Eclipse 3.4.1, so I'll list the steps I followed below.
- open the eclipse preferences pane
- general->keys
- in the filter type line start and note that there will be existing bindings when editing text.
- select line start type home, and ensure that the "when" field stays with Editing Text
- apply
- follow this process for select line start, line end, and select line end.
After doing this, expect your anger at eclipse on Mac to decrease to much more manageable levels.
Related posts:










Or you just do what the rest of us do and get used to mac keyboard shortcuts (assuming those work in eclipse)
command+left and command+right are the equivalent of home/end, I believe. Maybe it was option+up and option+down.
It does take a few seconds to reorient myself when I move to a windows computer, but using a mac keyboard without home/end buttons has made it much easier to train myself that they aren’t actually necessary
sure — but making it work right matches my dumb brain. I can only go so far with this and home and end were dumb.
In every IDE I use home and end, so having them do what I expect is so much nicer
For the record it’s command-left and command-right. Command-up and Command-down are equivalent to home and end.
Entourage drives me nuts by using the Windows meanings of home and end and making command-left/right move a word at a time. I don’t really care which system is in use as long as everything is consistent…
i use the home and end keys all the time when writing code, i can imagine how frustrating this can be…even on my vaio i need to use the fn key to get home,end which is a pain at times
Thank you thank you thank you! This was driving me crazy
Spot on.
I use an IBM Model M keyboard with my Mac and I can’t unlearn 25 years of the “proper” use of home and end. Well, I can, but when the world doesn’t fit I choose to make alterations to the world…
thank you. i LOVE eclipse!
Thank you ! This was driving me nuts !!!
Thanks for the post. Much obliged.
Thanks for the post. This was driving me crazy too. You have to make sure in stept 6 you have the “When” field set to “Editing Text”; it defaults to “in Windows”.
The default binding is just stupid: 3 keys when selecting to the start of the line instead of 2.
I think there’s a bug in Eclipse.
The fix would work sometime, and later when I re-open Eclipse, it would stop working and revert to the old bindings, even though in the key bindings settings it shows the new bindings. After updated the key bindings again (to the same setting), Eclipse then seems to be able to read the new bindings and work accordingly.
This really sucks! Almost makes me want to just work in ubuntu rather than mac os.
Thank you, you saved my life
Thanks mate,
That works like a pro. Absence of Home and End key in mac keyboard makes me crazy..
Finally sort out with your help