Reprint Source:http://www.cnblogs.com/yjhrem/articles/2310013.html
Edit the completion code, with MYECLIPSE code format, the original code is not long has been automatically turned into multiple lines. Although the automatic line wrapping can see all the code in the editor at a glance, the readability is greatly reduced, and the way to avoid this is to:
1.Java CodeOpen Eclipse's Window menu, then Preferences->java->code style->formatter->edit ... button (different buttons are available depending on the version)-Line Wrapping Tab-Maximum Line width: Change from the default 80 to the length you want to set as 800
You can also modify the Comments tab at the bottom of the Maximum line width value changed from 80 to
"Note," but here you need to create a new feature file under the Preferences->java->code style->formatter->new button. Before you can modify the above
2.Html CodeWindow->preferences->myeclipse->files and editors->html->html source->line width-> plus a 0 save. 3.xml CodeWindow->preferences->myeclipse->files and Editors->xml->xml Source->->line width->999
Reprint: MyEclipse setting to prevent line breaks when code is formatted