Eclispe 代码格式化

Posted: 8th 六月 2010 by admin in 项目管理

问题:由于要使用svn,所以组内的成员在代码提交前都需要format.但是Eclipse 默认的format会使得// # 之间产生一个空格。
这样使得目前使用的预处理方法无法正常执行。

解决方法:
参考文章:http://renxiangzyq.javaeye.com/blog/543081
具体步骤:
1 window–>preferences–>java–>formatter
2 new a profile
3 edit the profile–>comments–>unenable line comment formatting