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?
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.
精彩评论