如何添加要插入Java代碼模板的新變量。如何在Window-> Preferences-> Java-> Code Style-> Code Templates-> Code-> New Java Files-> Edit-> Insert Variable ...列表中添加一個變量到列表中?用於Java代碼模板的Eclipse自定義變量
目前我的新文件被創建具有:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
我想他們得到的東西,如創建:
${begin_filecomment}
${package_declaration}
${typecomment}
${type_declaration}
${end_filecomment}
其中begin_filecomment和end_filecomment出現在插入變量列表。