【发布时间】:2008-12-08 19:38:08
【问题描述】:
如何添加要插入 Java 代码模板的新变量。如何在 Window->Preferences->Java->Code Style->Code Templates->Code->New Java Files->Edit->Insert Variable... 的列表中添加变量?
目前我的新文件是通过以下方式创建的:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
我希望它们被创建为:
${begin_filecomment}
${package_declaration}
${typecomment}
${type_declaration}
${end_filecomment}
begin_filecomment 和 end_filecomment 出现在插入变量列表中的位置。
【问题讨论】: