eclipse格式化代码样式

时间:2023-12-27 17:30:43
1.Window->Preferences  

//Java 格式化  

2.Java->Code Style->Formatter->New->Edit->Line Wrapping  

3.Maximum Line width = 180  

4.Set line width for preview window = 180  

//JavaScript 格式化  

5.JavaScript->Code Style->Formatter->New->Edit->Line Wrapping  

6.Maximum Line width = 180  

7.Set line width for preview window = 180  

8.Tab标签页->Comments  

9.Maximum line width for comments = 180  

//JSP|HTML页面 格式化  

10.Web->HTML Files->Editor  

Line width = 180  

Inline Elements 选中所有-> Remove