Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the implementation method of no line wrapping and automatic line wrapping when formatting code in Eclipse

Shulou Source: shulou.com Published: 2022-06-02 02:25:09 11月13日 Update

Eclipse formatting code without line wrapping and automatic line wrapping method is what, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

Preferences- > Java- > Code Style- > Code Formatter- > Show... After opening, select the "Line Wrapping" tab and wrap the line when "Maximun line width" specifies how many columns are greater than

Also in the "Line Wrapping" tab, you can specify line wrapping for constructors, method bodies, and so on by selecting "Line Wrapping policy". However, the default coding style recommended by SUN is 80-column line wrapping.

Java code

Open the Window menu of Eclipse, and then Preferences- > Java- > Code Style- > Formatter- > Edit/Show (the buttons available vary from version to version)-> Line Wrapping- > Maximum line width: change from 80 to 800.

Html code

Window- > Preferences- > MyEclipse- > Files and Editors- > Html- > Html Source- > Line width- > add 0 and save.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Code method help selection format different clear content function this situation button article novice more version knowledge coding menu industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker Linux macOS OPPO Reno