Random techie babbling...

Fixing ‘End’ & ‘Home’ keys in Eclipse/Flex/FlashBuilder on OSX

If like me you’ve come from (or still work a lot in) a standard PC environment, you may be used to using the ‘end’ and ‘home’ keys to jump to the start or end of a line when editing text. However by default on a Mac this will jump to the start or end of the entire file, making for lots of infuriating moments when you hit ‘home’ and completely loose the place you are editing.

There’s a fix available here : KeyFixer that fixes this in most standard OSX apps and works great, but it doesn’t fix it for Eclipse which has its own internal bindings.

By default though Eclipse is even odder and has the home/end bound to ‘apple’ + left/right, which if you’re using a modern OSX will instead change spaces, even more infuriating!

So to fix this, simply open Eclipse and go into ‘preferences->general->keys’, then find ‘Line Start’ & ‘Line End’ and in the ‘binding’ area change them to the home/end keys & hit apply, problem fixed!

(You might also want to change the ‘select line start/end’ & ‘select text start/end’ while you’re there.)

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

5 Comments

Got something to say? Feel free, I want to hear from you! Leave a Comment

  1. Matthew Hall says:

    Thank you so much!

    You saved my life with this posting.

    I *HATE* Mac’s Home and End behavior!

  2. James Brown says:

    THANK YOU SO MUCH!

    Coming from Windows, this was driving me mad. Great post.

  3. Greg says:

    Thank you so much!

  4. Tim says:

    Amazing, thank you!

    It’s also worth changing “Next word”, “Select next word”, “Delete next word” and their “Previous…” counterparts to command-right, command-shift-right and so on.

  5. Tim says:

    Oh, and don’t forget to fix page-up/down too! (Search for “Page Up” and “Page Down” in the key bindings and set them to Fn-Up and Fn-Down).

Leave a Comment

Let us know your thoughts on this post but remember to place nicely folks!