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?
Asked
Active
Viewed 6,651 times
1 Answers
20
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
- 1,438
- 1
- 10
- 15
-
Done that but it doesn't do anything hence the question. Cheers. – Damo Apr 06 '10 at 08:23
-
2On the "When" drop down, try selecting "Editing Java Source". Now it works for me. – ewalk Apr 07 '10 at 07:08
-
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 Apr 07 '10 at 21:55
-
@ewalk When "Editing Text" is more general so it works in all types of files. – miguel Feb 27 '14 at 19:54