如何添加要插入Java代码模板的新变量.如何在Window-> Preferences-> Java-> Code Style-> Code Templates-> Code-> New Java Files-> Edit-> Insert Variable ...?中向列表添加变量?
目前,我的新文件创建时使用:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
Run Code Online (Sandbox Code Playgroud)
我希望他们能够像以下一样创建:
${begin_filecomment}
${package_declaration}
${typecomment}
${type_declaration}
${end_filecomment}
Run Code Online (Sandbox Code Playgroud)
其中begin_filecomment和end_filecomment出现在"插入变量"列表中.