[Eclipse tips] Set up jsp/html files in Eclipse good-looking automatic typesetting

Source: Internet
Author: User
Tags change settings

Eclipse in the JSP file code layout is ugly, but in order to make the code looks less chaotic or often used, Baidu has not found a solution to many times, so endured for a long time.

I don't know if it's the Eclipse update change settings, the settings found on the Web are always out of the way,

Today I accidentally found a place to set up,

Very simple:

Window-->preferences-->web-->html Files-->editor,

Set line width to 720 so that the code doesn't break easily.

Then in the inline elements, select the first drag scroll bar to the bottom of the last item by pressing SHIFT, click Remove to remove all the inline element

Just click OK.

And then format it once in the *.jsp file, is it more structured?

PS. About removing the inline element can not do, if not remove, some of the labels will be displayed on one line

[Eclipse tips] Set up jsp/html files in Eclipse good-looking automatic typesetting

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.