在使用eclipse的时候,想在创建类的时候,自动在首部添加注释,@anthor,怎么设置呢?很简单
依次打开【windows】,【Preferences】,【Java】,【Code Style】,【Code Templates】
然后展开右侧的【Code】
选定【New Java files】

然后点击右侧的Edit,在那两段代码中间添加你要显示的内容
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}

然后点OK,Apply,OK。
最后,我们创建一个类看一下,效果如图

本文地址:https://liuyanzhao.com/4318.html
转载请注明
依次打开【windows】,【Preferences】,【Java】,【Code Style】,【Code Templates】
然后展开右侧的【Code】
选定【New Java files】

然后点击右侧的Edit,在那两段代码中间添加你要显示的内容
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}

然后点OK,Apply,OK。
最后,我们创建一个类看一下,效果如图

本文地址:https://liuyanzhao.com/4318.html
转载请注明
您可以选择一种方式赞助本站
支付宝扫一扫赞助
微信钱包扫描赞助
赏