Eclipse default newline character length

The line break length set by default in eclipse, after Ctrl+Shift+F formatting the code, it often wraps, which is very ugly.

 

1. The Java code
opens the Window menu of Eclipse, then

Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width: The default 80 can be changed to 999 .

 

2. CSS code

Window->Preferences->Web->CSS Files->Editor->Line width: The default is 72 and it is modified to 999 to save.

 

3. Html code

Window->Preferences->Web->HTML Files->Editor->Line width: The default is 72 and it is modified to 999 to save.

 

4. JSP code

Window->Preferences->Web->JSP Files->Editor->Line width: The default is 72 and it is changed to 999 to save.

There are 999 here , which are set at will according to personal preference. . . .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325855643&siteId=291194637