Eclipse Code Formatting settings

Source: Internet
Author: User
After editing the completion code and formatting it with Eclipse code, the code that was not long was 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 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: Changed from the default 80 to the length you want to set
2.Html Code
Window->preferences->myeclipse->files and editors->html->html source->line width-> plus a 0 save.
3.xml Code
Window->preferences->myeclipse->files and Editors->xml->xml Source->->line width->999
Related Article

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.