修改Eclipse中的@author的默认值 vs 代码格式化
2014-11-24 17:01
155 查看
代码格式化:
右键-source-format能够起效,但ctrl+shift+f
修改Eclipse中的@author的默认值:
按照下图的方式设置,最后点击apply
1. 在eclipse.ini中添加
-vmargs
-Duser.name={author name}
记得一定要在-vmargs之后,否则无效。
2. 设置eclipse参数
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
原来的内容是:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
添加自定义内容,添加之后内容如下:
${filecomment}
${package_declaration}
/**
* @author 作者 E-mail:
* @version 创建时间:${date} ${time}
* 类说明
*/
${typecomment}
${type_declaration}
3. 设置eclipse参数
windows-->preference
Java-->Code Style-->Code Templates
Comments-->files
按照需要修改配置,并且保证上面项的配置中有${filecomment}这项。
右键-source-format能够起效,但ctrl+shift+f
修改Eclipse中的@author的默认值:
按照下图的方式设置,最后点击apply
1. 在eclipse.ini中添加
-vmargs
-Duser.name={author name}
记得一定要在-vmargs之后,否则无效。
2. 设置eclipse参数
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
原来的内容是:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
添加自定义内容,添加之后内容如下:
${filecomment}
${package_declaration}
/**
* @author 作者 E-mail:
* @version 创建时间:${date} ${time}
* 类说明
*/
${typecomment}
${type_declaration}
3. 设置eclipse参数
windows-->preference
Java-->Code Style-->Code Templates
Comments-->files
按照需要修改配置,并且保证上面项的配置中有${filecomment}这项。
相关文章推荐
- Eclipse代码注释时@author默认值Administrator修改
- Eclipse代码注释时@author默认值Administrator修改
- 修改Eclipse代码注释时@author默认值
- Eclipse代码注释时@author默认值Admin的修改
- Eclipse中代码注释时@author默认值Administrator修改
- eclipse修改注释中的@author和格式化
- 修改eclipse自动格式化代码长度
- eclipse环境下的代码格式化后出现折行修改如图
- Eclipse修改@author:的默认值
- 在vs.net 2005 中 像JBuilder,Eclipse那样格式化代码
- eclipse修改@author的默认值
- ubuntu12.04 Eclipse 代码提示第一个背景灰色 xml字体过小 自动格式化宽度修改 解决
- ECLIPSE + MYECLIPSE 格式化 JAVA 和 HTML 代码,将其显示在一行中
- Eclipse以及MyEclipse中防止代码格式化时出现换行的情况
- 我的 zend studio for eclipse 代码格式化
- Eclipse代码格式化配置文件
- 用eclipse 格式化压缩过的代码
- Eclipse 格式化代码时不换行与自动换行的实现方法
- CheckBoxList 选中值及修改的默认值代码