In Eclipse 4.6.2, I tried to put a print margin indicator line at 80 characters using Preferences -> General -> Editors -> Text Editors -> [Checkbox] Show Print Margin. However, no matter what value I put in the Print Margin Column box, the line stays at column 120.
I'm certain the line I'm looking at is the Print Margin, because I can change its color in the same Preferences page. I've hit Apply and restarted Eclipse, but no luck.
Go to Window/Prefences and open Java/Code Style Formatter. Then edit the profile. You can change the margin on the "Line Wrapping" tab ("Maximum line width").
setJobName(jobName); job. print(attr); j. setVisible(false); j. dispose();
Welcome to bug 468307, where your maximum line wrapping length is what matters.
2020-12-04:
I'm on eclipse-CDT version 2020-06 and the bug is still not fixed IMO.
[gotcha-1] gotcha: if the "ok" button is gray then you have to edit the "Profile name:" because it does not let you override a default profile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With