Java – how do I extend the margins of the eclipse source formatter?

Whenever I use source > to format in eclipse, it contains lines starting at line 80 But my program has many long lines, and I want to extend its tolerance to 120 I've tried to search for a setting that I can change, but I can find one Can you do that?

Solution

You can find it under preferences - > java - > code style - > formatter

Click the Edit button next to the currently active profile, go to the line wrap tab and change the maximum lineweight setting

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>