Software Development in Brisbane

Making the Home and End Keys work in Eclipse 3.4 on Apple Mac OSX

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.

  1. open the eclipse preferences pane
  2. general->keys
  3. in the filter type line start and note that there will be existing bindings when editing text.
  4. select line start type home, and ensure that the "when" field stays with Editing Text
  5. apply
  6. 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.

 

5 Responses to “Making the Home and End Keys work in Eclipse 3.4 on Apple Mac OSX”

  1. Andrew Herron Says:

    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 :)

  2. Rob Says:

    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 :)

  3. Adrian Sutton Says:

    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…

  4. web design ireland Says:

    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

  5. Tim Cull Says:

    Thank you thank you thank you! This was driving me crazy

Leave a Reply