Reprint: MyEclipse setting to prevent line breaks when code is formatted

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.