eclipse格式化代码样式

Posted Cxw丶cm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse格式化代码样式相关的知识,希望对你有一定的参考价值。

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 

 

以上是关于eclipse格式化代码样式的主要内容,如果未能解决你的问题,请参考以下文章