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?
Does it work in Java source? XHTML source? etc
Damo
2010-04-06 08:22:50
it works in Java
Nathan
2010-04-06 19:34:59
+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.
- Go to preferences (⌘+,)
- Navigation to "General > Keys"
- In the filter bar, search for "join". Click on the command "Join Lines"
- Click in the "Binding" box and then type the keys you wish to bind to this action.
ewalk
2010-04-06 06:30:19
On the "When" drop down, try selecting "Editing Java Source". Now it works for me.
ewalk
2010-04-07 07:08:04
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
2010-04-07 21:55:57