Eclipse: increase Java line width wrapping

Java standard line width wrapping is set for 80 which is archaic and unusable with today's screen sizes. Here are instructions how to change it.

1) Go to Eclipse -> Preferences..., search for "Formatter" -> Edit...
2) rename the Active Profile name to something meaningful to you (e.g. company name).
3) open "Line Wrapping" tab
4) Change "maximum line width: from 80 to something like 140 or 160 (for 15 inch macBookPro)
5) Apply, OK
6) format your code (shift+command+F)
7) Export Formatter for other team members.





As an Amazon Associate I earn from qualifying purchases.

No comments:

Post a Comment

Post Scriptum

The views in this article are mine and do not reflect those of my employer.
I am preparing to cancel the subscription to the e-mail newsletter that sends my articles.
Follow me on:
X.com (Twitter)
LinkedIn
Google Scholar

Popular Recent Posts

Most Popular Articles

apt quotation..