Each time you format the code with Eclipse's own ctrl+shift+f, if the original line of code is greater than 80 columns, eclipse will automatically change to multiple lines, which is not very comfortable, a simple try, can be modified in the following ways 1, preferences-> Java->code Style->code formatter->show ..., after opening, select the "Line wrapping" tab and in "Maximun lines width" Specify the number of columns to wrap.
2, or in the "Line wrapping" tab, you can select "Lines wrapping Policy" can specify the constructor, method body, and so on.
However, the default encoding style recommended by Sun is a 80 column line break.
1.Java Code
Open Eclipse's Window menu, and then Preferences->java->code style->formatter->edit/show (different buttons available depending on the version)->line Wrapping->maximum line width: change from 80 to 800.
2.Html Code
Window->preferences->myeclipse->files and editors->html->html source->line width-> plus a 0 save
Eclipse format code, line wrap settings