1. 打开 preference 选项窗口, 左上角搜索栏输入'tab', 找到'general->text editors'
2. 选中"show print margin", 列数设置成100. #这样就知道什么时候需要折行了.
3. 选中"show whitespace characters", 点"configure visibility", 去掉第一行的"Leading"和"Enclosed"选择, 可以去掉最后一行最后一列的选项. #这样就可 以避免行末空白了.
4. 选中"insert spaces for tabs", "tab width" 窗口输入"4". #避免tab
5. 打开 preference 选项窗口, 左上角搜索栏输入'format', 找到 'java->code style->text editors'
6. 点击"New", profile name 随便写一个(例如GDT), "tab policy" 设置成 "spaces only", 下面两个"size"都设置成"4". (2个tab才是真的标准)
7. 将"Line Wrapping"和"Comments"标签页中的列数都改到100.
8. 在"Control Statement"中选中"keep simple 'if' on one line."
9. eclipse 导入插件jar包不起作用时,使用命令 "eclipse -clean" 启动即可。