1.【window】/【preferences】/【Java】/【code style】/【formatter】/【edit】
2.面板【indentation】
tab policy = spaces only indentation
size = 4
tab size = 4
他的作用是只适用空格缩进,不使用table,这样可以去除不同平台下的txt识别问题
选中align fields in columns 他的作用是对其类中定义的属性
3 面板【line wrapping】
maximum line width = 400
他的作用是不让代码自动换行
【method declarations】/【Parameters】
line wrapping policy = wrap all elements, exception first element if not necessary
选中 force split, even if line shorter than maxmum width indentation
policy = indent on column
作用是在方法声明的时候,一个参数一行,尤其是spring mvc里一个方法十几个参数的时候,看着非常爽
4 面板【comments】
去掉 Enable line comment formatting
他的含义是去掉单行注释的格式化
注:文章为拷贝别处,只为了自己设置eclipse的时候方便查找。