In Eclipse, you can set code line width for Java, XML, and JSP by looking for the code in the format to look better and less wrapped. __js

Source: Internet
Author: User

Original address: http://blog.csdn.net/hdfyq/article/details/5821038:


Reason: Eclipse default code line width is 80, after formatting code, often wrapped, very ugly.

Workaround: JSP and XML are simpler to solve.

Open a JSP or XML. Right key->preferences-->source--> Find line width changed to 200.

Java Solution:

Window==>preferences==>java==>code style==>formatter==>new a new profile. The system cannot be edited with its own.

Edit your own new point edit and select line wrapping to find line width changed to 200.

After the change, find your own Java code, JSP code, XML code. All ctrl+shift+f works well.

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.