1.文字




2.修改UTF-8 




3.修改资源文件编码

依次点击windows -> Preferences -> general -> Content Types,如下图,点击打开Text



依次选择Java Source File、XML、Java Properties File等,在下面的Default
encoding输入框中输入UTF-8,并点Update生效

如下图:



特别地: 


properties已经缺省指定为ISO8859-1,所以这个必改。不然等写好了国际化配置,就乱码了…

4.去掉开启时提示框




5.导入注释模板




模板因公司不同,可能要求不一样,自己找个合适的,我下面提供一个简单的
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template
autoinsert="false" context="typecomment_context" deleted="false"
description="Comment for created types" enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/** *
@ClassName:${type_name} * @Description: TODO * @author ${name} * @date
${date}${time} */</template></templates>模板用法:创建一个xml格式的文件,粘贴,然后导入,名字那里改自己的

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:637538335
关注微信