Intellipaat 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

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

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...