相关疑难解决方法(0)

Eclipse代码模板的Eclipse自定义变量

如何添加要插入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出现在"插入变量"列表中.

java eclipse templates

10
推荐指数
3
解决办法
2万
查看次数

标签 统计

eclipse ×1

java ×1

templates ×1