Eclipse 中文件的自动标题
当在 Eclipse 中生成一个新类时,会生成一个可能看起来像这样的标题:
/*
* $Id $
*
* $Date$
* $Revision$
* $Author$
*
* Copyright YourCompany${year}, All Rights Reserved.
*/
Do yo Know if there is a way to change this title for somethink custom and if there is a way to apply itautomaticaly to all te classes that it'slened ?
干杯,
When a new class is generated in eclipse a title which may looks like this is generated:
/*
* $Id $
*
* $Date$
* $Revision$
* $Author$
*
* Copyright YourCompany${year}, All Rights Reserved.
*/
Do yo know if there is a way to change this title for somethink custom and if there is a way to apply it automaticaly to all te classes which already exists?
cheers,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在代码模板中更改此设置(首选项->Java->代码样式->代码模板),但是不行,您不能将其应用到所有已存在的类。
您要查找的特定评论(可能)位于“评论”->“文件”中。
You can change this in code templates (Preferences->Java->Code Style->Code Templates), but no, you can't apply it to all classes which already exist.
The particular comment that you're looking for is (probably) in Comments->Files.
为此:
1- 打开 eclipse 目录中的 eclipse.ini 文件。
之后添加以下行
2- 在 -vmargs 行-Duser.name=your name
参考文献:
http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg07148.html
to do so:
1- open eclipse.ini file in the eclipse directory.
2- add the following line after -vmargs line
-Duser.name=your name
References:
http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg07148.html