Format MyEclipse code (Java, JSP, JS) line length @ Modify Java code font @ Modify Properties file encoding mode __jsonp

Source: Internet
Author: User
Each time you format code with a myeclipse/eclipse shortcut key ctrl+shift+f, Eclipse automatically wraps to multiple lines if the original line of code is greater than 80 columns. If you want to format your code and don't want the code to wrap, you can modify it in the following ways:
1, modify the Java class file line length:
Open Eclipse's Window menu and Preferences->java->code style->formatter->edit/show (depending on the buttons available for different versions)->line Wrapping->maximum line width: Change 80 to 300 or greater.
2, modify the HTML, JSP, JS code line length
Window->preferences->myeclipse->files and editors->html->html source->line width-> add a 0 later to save.
3.mycelipse Modify Font:
   Window->preferences-> General->appearance-> colors and fonts
   The text font below the right basic:
4. Modify MyEclipse's Properties file encoding methodWindow->perferences->general->editors->context Types or: Window->perferences->general The context Types expands to the right text node and selects Java Properties File. Put the following default Character set value: Iso-8859-1 to UTF-8; diagram:

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.