1. 程式人生 > >eclipse格式化代碼樣式

eclipse格式化代碼樣式

blog edi pos b- 代碼 ping class formatter set

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格式化代碼樣式