How to make eclipse behaves and looks like Xcode?

ipad

Making the switch from a language to another is not easy, worse, when you need to set you mind straight with the IDE. Recently, I am involved in Java and luckily there are some tricks to ease the pain by making eclipse behaves like Xcode. First, you want that auto-complete and open a class upon single click; then change the colour theme of the coding; and last, build and compile when you hit Ctrl (⌘) + R. Here’s how:

1. Go to Window -> Preferences

Where are you preferences

Where are you preferences!

2. Look for Content Assist,

  • check “Enable auto activation”
  • set “Auto activation delay (ms)” to “100”
  • set “Auto activation triggers for Java” to “.abacdefghijklmnopqrstuvwxyABCDEFGHIGKLMNOPQRSTUVWXYZ”
Auto-complete!

Auto-complete!

3. Look for General, change “Open mode” to “Single click”. Apply and OK to confirm the settings.

Single click it

Single click it

You have just got yourself auto-complete and single click to open in eclipse.

4. Next is about colour code, some people argue the colour schemes, but there is a reason why it is call “Preferences”. Roger Dudler created a colour theme inspired by Xcode. Download the Eclipse Preferences (EPF) from here.

5.  Go File -> Import

Import

Import

6.  Expend “General” and “Select Preferences”, click Next.

General and Preferences

General and Preferences

7. Select the file you have just downloaded and Import it.

Import the colour

Import the colour

You have got yourself an Xcode like colour scheme!

8. Keep it rolling, go to Window -> Preferences again, look for General -> Keys.

Key matters

Key matters

9. Well, scroll down on the list of commands or search for Run.

Run

Run

10. Change the Binding to Ctrl + R

Bind

Bind

After all these step, you have auto-complete, single click open, colour scheme and Ctrl + R to run. Hopefully, this walkthrough helps to make your life easier.

This walkthrough is inspired by Nick Noble and Roger Dudler.

Please leave a comment if you any suggestions 🙂
Happy coding~