Hard workCodeAfter being formatted by eclipse, the things originally intended to be put on one line are automatically converted into multiple lines. Although the line breaks automatically, you can see all the generations in the editor.
Code, but the readability is greatly reduced. For example, I like to put the method name and parameters on one line. It is too messy to split them into three or four lines during Automatic formatting, to avoid this problem, you can:
1. Java code
Dozen
Open the window menu of eclipse, and then preferences-> JAVA-> code
Style-> formatter-> edit/show (the available buttons vary according to different versions)-> line
Wrapping-> maximum line width: changed from 80 to 800.
2. HTML code (XML and CSS code are similar)
Window-> preferences-> myeclipse-> files and editors-> HTML source-> line width-> Add 0 and save the settings.
Blog Source: http://www.diybl.com/course/3_program/java/javashl/2008419/110517.html