Eclipse has the functionality to auto format code on CTRL+SHIFT+F key press. At a certain point, it wraps lines.
You can increase Maximum line width -
1] Open Eclipse > Window > Preferences,
2] On the left panel. Click Java > Code Style > Formatter
3] You need to create a new 'Active profile'. To create click New button. Type profile name. Choose 'Eclipse [built-in]' in drop-down list and click ok.
4] In the Profile window select 'Line Wrapping' tab. In 'General Settings' Increase the value of 'Maximum line width:' property and Apply.
5] Select the newly created profile in Active profiles list. Apply and click OK.
6] In code editor window, press CTRL+SHIFT+F to confirm changes.
7] Done
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment