tags:

views:

30

answers:

2

According to the release notes of Eclipse 3.3 you can now join lines together with CRTL-ALT-J. This doesn't work for me running Eclipse 3.5 on a Mac. Does it work for anyone else?

+1  A: 

Works for me!

I'm running eclipse 3.5 on Ubuntu 9.04

Nathan
Does it work in Java source? XHTML source? etc
Damo
it works in Java
Nathan
+2  A: 

For mac, there is no key binding assigned by default (I'm using Eclipse 3.5 for Mac). You can assign your own bind if you want eg: +Alt+J.

  1. Go to preferences (+,)
  2. Navigation to "General > Keys"
  3. In the filter bar, search for "join". Click on the command "Join Lines"
  4. Click in the "Binding" box and then type the keys you wish to bind to this action.
ewalk
Done that but it doesn't do anything hence the question. Cheers.
Damo
On the "When" drop down, try selecting "Editing Java Source". Now it works for me.
ewalk
Got it. Noticed that even though the Keys Prerferences panel did not have any binding conflicts it was showing "Reverse Incremental Find" in the status bar at the bottom when trying to use my key binding. Changed to something more obscure and it's fine. Also set my "When" to "In Dialogs and Windows" so it works in Java and XHTML. Thanks.
Damo