路径:window->preference->java->code style->code templates
点击comments->types
编辑:将下面内容填上
/**
@Name: ${file_name}
@Author: ${user}
@Date: ${date}
@Description:
*/
也可以根据自己的要求添加其他内容,有insert按钮,可以添加一些变量;
然后右侧有export,可以到处xml文件,用于其他的电脑等~
[color=red]快捷键 alt+shift+J[/color]
点击comments->types
编辑:将下面内容填上
/**
@Name: ${file_name}
@Author: ${user}
@Date: ${date}
@Description:
*/
也可以根据自己的要求添加其他内容,有insert按钮,可以添加一些变量;
然后右侧有export,可以到处xml文件,用于其他的电脑等~
[color=red]快捷键 alt+shift+J[/color]

本文介绍如何在Eclipse中设置代码模板,通过路径window-preference-java-codestyle-codetemplates进行配置。用户可以自定义注释模板,并通过快捷键Alt+Shift+J快速插入。此外,还介绍了如何导出配置以便于跨设备使用。
796

被折叠的 条评论
为什么被折叠?



