Pau*_*kin 10 java eclipse templates
如何添加要插入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出现在"插入变量"列表中.
我很确定Eclipse生成的"变量"列表并没有办法添加新的模板变量.
你想要${begin_filecomment}和${end_filecomment}做什么?只需在"编辑"框中键入内容 - 没有任何内容表明您不能将静态内容放入其中.
| 归档时间: |
|
| 查看次数: |
16187 次 |
| 最近记录: |