Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (3.5k points)

I am working with Java. If I hit Ctrl+Shift+F in Eclipse Helios, it will auto format my code. At a certain point, it wraps lines. I would like to increase the maximum line length. How can I do this?

1 Answer

0 votes
by (46k points)

Follow these steps:

  • In preferences Java -> Code Style -> Formatter

  • Edit the profile. Beneath the Line Wrapping tab is the primary choice for line width (Maximum line width:). In the Comments tab, you have a separate option Maximum line width for comments, which will also need to be changed to affect comment wrapping

image 

You will need to make your profile to make these changes in if you use one of the [Built-in] ones. Just click "New..." on the format preferences page

Related questions

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
asked Aug 1, 2019 in Java by Sammy (47.6k points)
0 votes
1 answer

Browse Categories

...